Hi,
I'm working with a TMDX570LS31HDK and trying to startup a new project with lwIP support based on your example (HALCoGen Ethernet Driver and lwIP Integration Demonstration)
I've follow your starting point to setup the drivers in halcogen:
- disabled all drivers exept EMAC ans SCII (for terminal messages)
- enable the PINMUX for MII,MDIO(G3) & MDCLK(V5) - NOTE: the MII autosetup generates two conflictcts. I've disabled the two AVCLK4 to solve them)
- Enable EMAC interrupts 77 and 79 in VIM Channel configuration tab
- Added two ISR in the VIM ram tab. The two function will call lwIPRxHandler and lwIPTxHandler (I've copied the code from your EMACCore0RxIsr and EMACCore0TxIsr)
- one MAC address is set in the EMAC tab
- the rest of the code is imported from your example with no modification except the ones required for correct compilation (for example some undefined unitXX_t types probably due to previous version of HalCoGen.)
- as you can see from attached code my sysmain is basically extracted from your example and manly calls lwIPInit to startup ethernet and get DHCP
The code compiles flawless but does not work. The microcontroller cannot get the DHCP address. Note that on the same platform your example works well and reach the DHCP bound. I've dig as much as I can with no results. Can someone have a lokk to my code to find the bug?
Once working I'll be happy to share this with all the forum users. It will be a clear starting point for ethernet support.
grazie,
Matteo