This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LwIP RM57 configuration problem

Other Parts Discussed in Thread: HALCOGEN

Hi there,

I got the example (http://processors.wiki.ti.com/index.php/HALCoGen_Ethernet_Driver_and_lwIP_Integration_Demonstrationworking on my board using an static IP address (which, by the way, had to be inverted, instead of 192.168.2.44, 44.2.168.192). I also reduced the example to only be able to ping the board to above said IP address.

I then tried to do the same with my own project. I did all the configurations in HALCoGen that are described in the above weg page. I also compared this with the settings of the example.

The problem is: my test does NOT work. The serial console output is:

DEBUG - Getting PHY ID....SUCCESS
DEBUG - Getting PHY Alive Status...SUCCESS
DEBUG - Getting PHY Link Status...SUCCESS
DEBUG - Setting up Link...SUCCESS
..DONE

Device IP Address: 192.168.2.44

...which implies that everything is OK, but I cannot ping the board.

Now, even though the settings in HALCoGen "are the same", the generated files are NOT. 

HL_emac.h, Variable: EMAC_MACSRCADDRLO_DEFAULT = 0x6C | 0xA6 instead of 0x6C | 0x08 (LwIP example)

HL_mdio.h, Variable: MDIO_FREQ_INPUT is 75 000 000 instead of 32 000 000 (LwIP example)

HL_pinmux.h: several shif operations have different operands. To name one: variable PINMUX_BALL_B2_N2HET1_27 is assigned the value ((uint32)((uint32)0x8U <<  PINMUX_BALL_B2_SHIFT)) instead of  ((uint32)((uint32)0x10U <<  PINMUX_BALL_B2_SHIFT)) (LwIP example)

HL_pinmux.c different pinmux registers are used in read/write operations and the PINMUX[36] has different values assigned to it.

To clarify: I copied everything not autogenerated from the example to my test -->> all files from the LwIP library and all the files from ports/hdk/. The only differences lie on the autogenerated files from HALCoGen. 

Any help will be appreciated.

Best regards,

Julio