SPC58 Network RLA/DHCP Issue
- October 28, 2020
- 5 replies
- 1962 views
I had a functioning TCP/IP application I am trialing on the SPC58EC-DISP discovery board using DHCP. SPC5Studio pulled updates and is not forcing me to migrate to the latest RLA (1.8.2.20200908161300) which breaks some network code -- this was fixed. However DHCP either does not function, or will bring the interface (ETHD0) up rarely and sporadically. This was not the case with the previous RLA (1.8.1.20200626121110). The previous driver was very reliable and repeatable.
Thinking it was some fault of mine -- I created a new Ping Test demo application and with DHCP enabled it certainly fails to bring the interface up (worked a handful of times -- takes many board resets to get it to bring the interface up). If I disable DHCP the interface comes up with a static IP immediately.
To sanity check myself further -- I flashed the board with the older Ping Test demo (based on 1.8.1 rla) with DHCP turned on. It gets the IP addres and brings the interface up every time.
Watching DHCP traffic shows that the 1.8.2 RLA driver is sending the DHCP request, is getting the response, but seems to be stuck in a loop requesting the DHCP over and over (DHCP server acknowledges the device).
At this point I've come to a grinding hault due to the forced migration. I either have to figure out how to revert to RLA 1.8.1 (which SPC5 studio doesn't seem to let me chose?) or write my own FreeRTOS TCP/IP & net driver replacement using the 1.8.1 rla as a base -- which is tedious and would be nice to be avoided.
Thanks for any help.
