cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX LwIP without RTOS - Ping doesn't work (Code generated by CubeMX)

kp0709
Associate

I'm working with the STM32F429ZI (Nucleo) board. STM32CubeMX v5.3.0, generating code for IAR Workbench.

I've set a static IP address, and otherwise kept default settings.

I've created a basic CubeMX project with just LWIP enabled and unable to ping the board.

In the main function call part of code generated calls function MX_LWIP_Init() and in while(1) MX_LWIP_Process() - don't see any error or timeout ,just keeps polling in while loop. ( I could see the ethernet led's ON after passing through initialization phase)

Also when i tried the HTTP server(netconn) example with FreeRTOS was able to get the application working.

Could anyone suggest what I am missing in my test setup ?

3 REPLIES 3
Pavel A.
Evangelist III

A network sniffer is missing. so you cannot see what actually goes on the wire.

-- pa

kp0709
Associate

I am not experienced in using the network sniffer , when I ping the board (ip address 192.168.0.10) from my pc ( pc id addr 192.168.0.253) - I see host not reachable packet shown in wireshark tool. Does it give any clue ? (Attached the screenshot)

0690X00000ARLcvQAH.png

Pavel A.
Evangelist III

> I see host not reachable packet shown in wireshark tool. Does it give any clue ?

No, unfortunately not much. Just that your board does not answer ARP requests.

If you use LWIP customized by ST, ARP replies should be automatically sent by the ethernet controller.

-- pa