Skip to main content
Associate III
January 16, 2024
Solved

Ethernet : LwIP stm32h735 Memory

  • January 16, 2024
  • 3 replies
  • 3001 views

Hi,

I'm trying to implement an STM32H735 device with LwIP and FreeRTOS. I've been following this documentation: https://community.st.com/t5/stm32-mcus/how-to-create-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308

Although I've managed to resolve debugging errors, I'm still unable to successfully ping the device. Any assistance from fellow developers would be greatly appreciated.

Best answer by HispaEmo

Okay, I've managed to successfully ping. My goal is to build layer by layer until implementing Azure IoT.

By the way, I followed this video: https://www.youtube.com/watch?v=8r8w6mgSn1A&list=PLfIJKC1ud8ggZKVtytWAlOS63vifF5iJC

I ignored PoolSection.

I'll post again if I encounter more issues.

Best wishes.

3 replies

jumman_JHINGA
Senior III
January 16, 2024

Hii @HispaEmo  Compare Ethernet GPIOs pins configured in CubeMx with GPIOs Pins mentioned in your Device Data sheet. if pin is configured wrongly then correct it. otherwise mentioned your what exact issue your facing.

HispaEmoAuthor
Associate III
January 16, 2024

Hello @jumman_JHINGA

Thank you very much for responding. I've been trying this for a few days, and your guidance is really helpful. I'll be more specific so that we can resolve it as soon as possible.

Starting with the pins:

As you mentioned, the first thing I checked was the pins, as the CubeMX tends to assign them incorrectly.

Here comes my first question: with STM32H735, is Ethernet configuration possible with MII? Because in the board's schematic, I only see pins associated with RMII.
 
HispaEmo_1-1705406861376.png
 
 
 

Regarding Rx_PoolSection, I've read that it's not necessary to define it, although I've tried modifying the ethernetif.c file.

I usually set:

Tx 0x30000100

Rx 0x30000000

Rx_PoolSection 0x30000400

The configuration of the Cortex M7 and its memory regions is one of the things that generates the most doubt for me. What size should I use, and what are the MPU options?

HispaEmo_2-1705406930462.png

 

 

I would like to know the most relevant options that may have changed in https://community.st.com/t5/stm32-mcus/how-to-create-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308.

I'm reading your response carefully, and thank you very much.

 

Senior
January 29, 2024

Does it mean STM32IDE also could assign them incorrectly?

HispaEmoAuthor
Associate III
January 31, 2024

yes ETH pins pb10 pb11 pb12...

HispaEmoAuthorAnswer
Associate III
January 16, 2024

Okay, I've managed to successfully ping. My goal is to build layer by layer until implementing Azure IoT.

By the way, I followed this video: https://www.youtube.com/watch?v=8r8w6mgSn1A&list=PLfIJKC1ud8ggZKVtytWAlOS63vifF5iJC

I ignored PoolSection.

I'll post again if I encounter more issues.

Best wishes.