We are using the function call MAP_SysCtlReset(); to reset the processor.
During reboot, we call a function to Initializes the lwIP TCP/IP stack.
In that function, we call these functions and hang while waiting for SYSCTL_PERIPH_EPHY0 to become ready if(MAP_SysCtlPeripheralPresent(SYSCTL_PERIPH_EPHY0))
{
MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_EPHY0);
MAP_SysCtlPeripheralReset(SYSCTL_PERIPH_EPHY0);
// Wait for EPHY to reset
while(!MAP_SysCtlPeripheralReady(SYSCTL_PERIPH_EPHY0)) <- hangs here
{
}
What's the best way to recover from this?
Would calling MAP_SysCtlPeripheralReset
() again recover, or do we need to reset the entire ethernet peripheral?
Thanks
Jeff