Skip to main content
kp0709
Associate
September 18, 2019
Question

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

  • September 18, 2019
  • 3 replies
  • 1018 views

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 ?

This topic has been closed for replies.

3 replies

Pavel A.
September 18, 2019

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

-- pa

kp0709
kp0709Author
Associate
September 18, 2019

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.
September 18, 2019

> 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