cancel
Showing results for 
Search instead for 
Did you mean: 

Ping is not happening on STM32H753 with LwIP and FreeRTOS

chaithu_coder
Associate II

https://controllerstech.com/stm32-ethernet-hardware-cubemx-lwip-ping/?utm_source=chatgpt.com

I followed steps of above website data based to configure Ethernet on stm32h753zi but still ping is failing i cant able to find the exact error can anyone help to tell the exact configuration of this board   

13 REPLIES 13
mbarg.1
Lead
  1. First: dont rely on artificial stupidity . not alla board are wired the same, minimal changes to hw can stop operation.
  2. Turn on your brain - does your hw and your setup work? download a tested example from STM site - most examples are with DHCP on, you need a DHCP server running on network - use ethernet statistics and registers to get info un packets arriving to your device.

Thanks for the reply. I understand that not all boards are wired the same, which is exactly why I’m looking for STM32H753ZI-specific guidance, not generic Ethernet steps.

I’m using a NUCLEO-H753ZI (LAN8742 PHY, RMII). Link LEDs are up and blinking, PHY reports link-up and auto-negotiation complete. I’ve tested official ST CubeH7 LwIP examples on NUCLEO-H743ZI and ping works there, but using the same configuration on H753 ping fails.

I’ve tried both DHCP and static IP, and I do have a DHCP server running when needed. I’m also checking ETH MAC registers, PHY registers, and LwIP netif state.

Where I’m stuck is mainly around Cortex-M7 cache/MPU handling on H753:

  • correct RMII 50 MHz clock source

  • correct placement of ETH DMA descriptors and buffers (RAM_D2 vs AXI SRAM)

  • required MPU configuration for non-cacheable regions

  • whether extra cache maintenance is needed with FreeRTOS + LwIP on H753

  • any CubeMX differences between H743 and H753 that affect Ethernet

If there’s a known-working CubeMX .ioc, official ST example, or a checklist specific to NUCLEO-H753ZI Ethernet, that would really help.

Vidar
Associate III

Dude, everyting what you posted is ChatGPT, but anyway. 

Have you chekced your DMA placement and you pin layout of the ETH pins? Look up yoour schematics! I recently had a similar issue

Yah, i verified with schematic 2 pins is wrongly configured i re configured based on schematic

can i get exact configuration of Ethernet for this stm32h753 LWIP+FreeRTOS based anywhere it can helpful for me to work it out.

Look here for example projects:https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects

Also, maybe just fix your pin assignent, otherwise you will encounter clock issues

Thanks for your reply..I went through this but unfortunately i just got   code base examples   files only i didn't get any steps or other things in this  to configure Ethernet of Nucleo-h753zi board based.

Working from examples is a basic skill, please utilize it. Copy the iioc file nd then modify the codebase.

I didn't found any .ioc file in that folders i searched for that to see how they configured could you please re check and resend the link 

Hi @chaithu_coder ,

                                     I had same issue earlier then i followed this reference, it worked. Double check the DMA Descriptor placements in build analyser.  https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308