Hello.
I am trying to use the lwIP 1.4.1 port with the Hercules TMS570ls1227 HDK board. I have HALCoGen EMAC Driver with lwIP Demonstration\v00.03.00\TMS570LS12x\Demo Executable\Build-TMS570LS12x.out loaded on the MCU with ethernet enabled on S2.
THE PROBLEM: If I remove the power supply connector, wait roughly 10 seconds and reconnect power, the initialisation will hang on "getting PHY ID......................................................................". After the 2^16 attempts to get the PHY ID, the PHY alive check will also fail.
If I disconnect and then reconnect the power quickly the initialisation usually completes successfully, however on some occasions it still fails. A reset using S3 or S4 will always resolve this issue.
I have tried this on 3 different HDK boards with identical results. I have tried different compiler versions, increasing the delay after initializing the MDIO and calling Dp83640Reset() before Dp83640IDGet() with no success.
It is interesting to note that when using lwip with the ethernet boot-loader (http://processors.wiki.ti.com/images/b/b1/SafetyMCU_Ethernet_Bootloader.zipnot occur, with 100 attempts needed in the worse case to obtain the PHY ID. This makes me wonder whether the code in the boot-loader brings up the micro controller in a more stable state.
It would be appreciated if anyone could provide any insight to this issue.
Many thanks,
James Wiblin.