Hi yueli,
thank you for your example project and user guide. It works for my setup (MPC574xG-MB + 176 DC).
Now I want to include your lwIP port to my existing project. This is what I did so far:
- copied the lwip-1.4.1
- copied the driver folder
- copied the header files from include folder
- added include paths (lwip-1.4.1/port, lwip-1.4.1/src/include and lwip-1.4.1/include/ipv4)
- added timer init and your timer ISR
Everything builds without errors but I don't get an UDP echo replied.
NetNIC_PhyInit(); replies 12040 (timeout). So I checked my timings and clocks. Mine are pretty similar to yours, but even if I copy your system160mhz() and PLL_160MHz() I run into the same errors. I checked MDC clock and it is at 2.5MHz. MDIO line shows traffic during init.
Do I miss anything? Or do you have any idea what i can check for troubleshooting?
Thank you for your efforts
Bernhard