1
NXPTM M522XX, KINETIS and i.MX RT / Problems with uTasker & Ethernet/PHY in a MCF52235
« on: March 21, 2011, 05:04:03 PM »
I'm using a MCF52235 microcontroller with uTasker as OS. I have a project with Ethernet support but I have problems when using it.
My project needs Ethernet because is partly based on a Website but, for example, if I turn on my board without Ethernet cable connected, my program gets stuck. I have seen that it stops in a while-loop waiting for a bit to set. That happens inside the fnMIIread function where the program waits until the MII flag of EIR is set. So it gets trapped ad-infinitum in this while-loop. I need to avoid it. Even if there're no Ethernet, my program can't get stuck!.
When the Ethernet cable is connected, there're no problems, it works fine. Are there a way to solve or avoid this behaviour?
My project needs Ethernet because is partly based on a Website but, for example, if I turn on my board without Ethernet cable connected, my program gets stuck. I have seen that it stops in a while-loop waiting for a bit to set. That happens inside the fnMIIread function where the program waits until the MII flag of EIR is set. So it gets trapped ad-infinitum in this while-loop. I need to avoid it. Even if there're no Ethernet, my program can't get stuck!.
When the Ethernet cable is connected, there're no problems, it works fine. Are there a way to solve or avoid this behaviour?



