cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-H723ZG Ethernet implemntaion

ParthDhoble
Associate II

hi,
    I'm new to STM32 and I need assistance with Ethernet configuration on the Nucleo-H7Z3G board. I'm starting from the beginning and hence I want to achieve the following: 1. Configuration of the Ethernet interface: RMII/MII on Nucleo-H7Z3G 2. Configuration of TCP/IP: LWIP (Lightweight IP) protocol stack 3. TCP/IP send/receive: able to send and receive packets over Ethernet. I have the following: Nucleo-H7Z3G, Ethernet cable, STM32CubeIDE. I need help with the following: 1. Where to set up the Ethernet in STM32CubeMX 2. How to set up and initialize LWIP 3. Where to look for example codes for send/receive 4. Where can I find resources/examples/tutorials for this? What I've tried thus far: - Review of the STM32CubeMX manual - Extensive online search ranging from forums to formal documentation. I've received no errors, but I'm stuck. Please help! Any and all examples, tutorials, suggestions are greatly appreciated!
Thankful in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

Hello,

You didn't mention that you need examples withour RTOS from the beginning ...

Anyway, these examples with LWIP don't use RTOS: 

TCP: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H723ZG/Applications/LwIP/LwIP_UDP_Echo_Server

UDP: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H723ZG/Applications/LwIP/LwIP_TCP_Echo_Server

Again these are examples are not provided wicth CubeMx config. If you need to start with CubeMx, you need to inspire from these projects and implement what it needs to implement: ETH and PHY.

See also: https://community.st.com/t5/stm32-mcus-products/ethernet-without-rtos-or-cubemx-stm32h7/td-p/681136

and UM1713 "Developing applications on STM32Cube with LwIP TCP/IP stack "

Hope that answers your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

5 REPLIES 5
Imen.D
ST Employee

Hello @ParthDhoble and welcome to the Community,

I advise you to follow this article : How to create a project for STM32H7 with Ethernet ... - STMicroelectronics Community, which provided ready-to-use example and steps on how to create LwIP project from scratch.

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
ParthDhoble
Associate II

The board the i using Nucleo-H723ZG has RMII Ethernet interface.
the link provide for article  https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308 configure the Ethernet on MII config. which i can use with my board.

so please provide me a guide on how to implement RMII for ethernet controll. 

Hello,

Inspire from the examples provided in CubeH7 / running on Nucleo-H723ZG board: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H723ZG/Applications/LwIP

Get the ETH init/PHY config from their.

Note: no CubeMx available but get the config from one of the examples and apply it to CubeMx.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

HOW can i implement these solution with out using FreeRTOS.
as in my project i am trying to implement sockets based protocol using base LWIP stack..

Hello,

You didn't mention that you need examples withour RTOS from the beginning ...

Anyway, these examples with LWIP don't use RTOS: 

TCP: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H723ZG/Applications/LwIP/LwIP_UDP_Echo_Server

UDP: https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Projects/NUCLEO-H723ZG/Applications/LwIP/LwIP_TCP_Echo_Server

Again these are examples are not provided wicth CubeMx config. If you need to start with CubeMx, you need to inspire from these projects and implement what it needs to implement: ETH and PHY.

See also: https://community.st.com/t5/stm32-mcus-products/ethernet-without-rtos-or-cubemx-stm32h7/td-p/681136

and UM1713 "Developing applications on STM32Cube with LwIP TCP/IP stack "

Hope that answers your question.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.