2024-11-14 09:51 PM - last edited on 2024-11-15 07:58 AM by SofLit
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.
Solved! Go to Solution.
2024-11-16 04:51 AM
Hello,
You didn't mention that you need examples withour RTOS from the beginning ...
Anyway, these examples with LWIP don't use RTOS:
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.
2024-11-14 10:22 PM
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.
2024-11-15 07:48 AM
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.
2024-11-15 07:54 AM - edited 2024-11-15 07:57 AM
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.
2024-11-16 04:14 AM
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..
2024-11-16 04:51 AM
Hello,
You didn't mention that you need examples withour RTOS from the beginning ...
Anyway, these examples with LWIP don't use RTOS:
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.