2025-04-16 7:21 AM - last edited on 2025-04-16 11:50 PM by mƎALLEm
Hi all
I am trying to understand how can I send data and recieve ,,Can you share any example code or something.
I am sharing my project can you so confirm me is configuration is correct.
B.R
Ashish
2025-04-16 8:51 AM - edited 2025-04-16 8:54 AM
Hello,
Sorry, in the title: "Ethernet on stm32f407" and in the attachment "CAN_Communication.zip". Could you please check and clarify?
Please review how to ask a question in this community to prevent any misunderstanding of your request and avoid wasting time.
2025-04-16 9:58 PM - edited 2025-04-16 10:58 PM
Hi
I am trying configure ethernet on stm32f407and want to send data from ethernet to stm32f407 and vice versa .So can you help me with some tips or project example how can I achieve.
I have attached my project zip in which I have configured ethernet.
Note : Do I have to configure memory layout also like H7 board because someone has shared or it is not necessary default configuration will work.
2025-04-16 11:47 PM - edited 2025-04-17 8:58 AM
Hello,
I’m not Ethernet expert, but Ethernet is not SPI or UART and simple as you imagine. If you are not familiar with it I suggest you to use UART or SPI or I2C or similar depending on your needs.
You need an external Ethernet PHY that you need to configure in the software and you need to take care a lot of things like the PHY timings, Clocks etc.. which I think if you are a beginner is not convenient for you.
If you insist checkout this article as it may help you: How to create a bare metal HAL Ethernet application on STM32H563/STM32H723 (No need for Ethernet stack such as LWIP).
PS: for your question about memory layout: no H7 and F4 are different families and the memory mapping is not the same. You need to take care also of that.
Good luck with that.
2025-04-17 1:38 AM
@Ash1 wrote:I am trying to understand how can I send data and receive
Do you understand the basics of Ethernet networking ?
Typically, you would use either TCP or UDP over IP - known as "TCP/IP" or "UDP/IP" for short.
To do that, you would need software known as a protocol stack; eg, LwIP:
https://savannah.nongnu.org/projects/lwip/
https://en.wikipedia.org/wiki/LwIP
There are also hardware devices to do this for you; eg,
https://www.lantronix.com/products-class/serial-to-ethernet-wired-device-servers/
Try "STM32F4 Ethernet" in your favourite internet search engine...
Also search the forum; eg,
How to Connect STM32F407-Discovery Board to Ethernet?
Maybe look at ST boards which include Ethernet ...
2025-04-17 2:00 AM
As @mƎALLEm said, this is a non-trivial task.
So, if you decide to go ahead, you need to start simple:
You will need to spend some time studying how Ethernet, IP, etc works
Start by just establishing comms with a PC or some other known-good network device.
Think about what test tools you will need; eg,
https://stackoverflow.com/questions/515328/good-tool-for-testing-socket-connections