Skip to main content
Jan 8, 2024 1:32 PM UTC
Solved

EtherCAT on STM32

I wanna implement Master and Slave ethercat protocol on stm32h7 series. Is there any examples available on subject?. Where should i start. Any resources?

STeaBest answer
ST Employee
Jan 9, 2024 3:43 PM UTC

Hello @Legacy member ,

unfortunately the STM32H7 series is not supported in the port of EtherCAT protocol stack/lib supported by ST as shown in this screenshot below 

STea_0-1704814906392.png

more details on this in our website.

BR

In order 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.

9 replies

STeaBest answer
ST Employee
Jan 9, 2024 3:43 PM UTC

Hello @Legacy member ,

unfortunately the STM32H7 series is not supported in the port of EtherCAT protocol stack/lib supported by ST as shown in this screenshot below 

STea_0-1704814906392.png

more details on this in our website.

BR

In order 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.
Associate III
Mar 30, 2024 4:31 AM UTC

Hi @Legacy member,

I am doing an EtherCAT project with STM32F303 connected to the Microchip LAN9252 via SPI with the F303/LAN52 as a ECat slave.

The plan is to start with the Microchip EVB-LAN9252_SAM D51 dev board for stack bring up, communication from the master and port what is learned to the F303.

Thought I would bump this thread to share ideas and pitfalls.

How is your project going?

FTrom
Associate III
Sep 4, 2024 7:42 AM UTC

Hi Jlag

I am starting a new project using LAN9252 as well. I will comunicate by SPI with a STM32F4. If you share your project it will help me a lot.

Thanks in advance

FT

WHam.1
Associate II
Feb 7, 2025 9:14 AM UTC

Please watch my YouTube for implementation of ECAT master base on stm32F7x and Stm32h7x. Prof. Woonchul Ham

https://www.youtube.com/watch?v=AK2MHlrzZrI

 

WHam.1
Associate II
Feb 7, 2025 9:20 AM UTC

Screenshot_20250207_181750_Samsung Internet.jpg

Visitor II
Jul 1, 2025 9:20 AM UTC

Hello,

if you did not find a solution for the EtherCAT master meanwhile, you could have a look on the following web pages:

https://www.ibv-augsburg.de/en/products/icnet/ethercat-master/

https://www.st.com/en/partner-products-and-services/icecat-ethercat-master-stack.html 

IBV provides an EtherCAT master software which is especially designed for microcontrollers like the STM32H7.

Best regards,

Walter

Associate II
Jun 15, 2026 12:29 PM UTC

Could anyone tell me what drivers are required to implement an EtherCAT project by interfacing an STM32 microcontroller with the EVB-LAN9252-SPI board?

Specifically, I would like to know which software, Software drivers, middleware, and libraries are needed to establish EtherCAT communication between the STM32 and the LAN9252 EtherCAT Slave Controller. If available, could you please share the documents here?

 

Andrew Neil
Super User
Jun 16, 2026 10:29 AM UTC

First, you’re going to need an EtherCAT protocol stack - see links given earlier in this thread.

Once you have that, it will describe what it needs from its drivers.

 

The ‘Port’ link given by ​@STea now seems to be dead - try this instead:

https://www.port.de/en/products/ethercat/software/ethercat-protocol-stack.html 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.