Skip to main content
January 8, 2024
Solved

EtherCAT on STM32

  • January 8, 2024
  • 6 replies
  • 10979 views

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

Best answer by STea

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

6 replies

STeaBest answer
ST Employee
January 9, 2024

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
March 30, 2024

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
September 4, 2024

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
February 7, 2025

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
February 7, 2025

Screenshot_20250207_181750_Samsung Internet.jpg

Visitor II
July 1, 2025

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
June 15, 2026

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
June 16, 2026

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.