When I am using the embedded PHY network and the sample code given in the docs, I get a 100% CPU usage a couple seconds after plugging in a network cable and network link being achieved.
I am seeing the same behaviour when starting a TCP socket gets to this line: (no network link at this moment)
Socket ClientSocket = Socket.Accept();
The same behaviour is once again seen when enabling a CAN controller.
Is all of this expected behaviour? The system seems to be functioning normally. All of this is tested with a SC20100S running the latest preview firmware and latest nuget packages.
So, because we can now, I have been doing in depth CPU usage profiling in my code. I found that the Socket.Accept() method still seems to be using a lot of CPU time - at idle, my software is sitting at about 39% (it has a couple of in the background running a heavy CANbus thread and a few serial ports, with controller logic behind the UI, etc) with no sockets open. When i open a socket to listen (in normal use i can have up to 3), each socket waiting for a connection will increase my idle CPU by 10-15% (additive - my idle CPU usage is now 50-55% with one socket). Is this expected? is there any way to free up that CPU time or is that just something I will have to work around and leave headroom for?