MIMXRT1180-EVK for EthertCAT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MIMXRT1180-EVK for EthertCAT

825 Views
silvio-vallorani
Contributor III

Need help with evkmimxrt1180_ecat_digital_io_cm33/cm7 example for MIMXRT1180-EVK.

I can compile, flash and emulate the demo using MCUXpresso IDE and the SDK, but it seems do not correct configure the phys...

Should a working firmware turn on a led on the RJ connectors after hw init?

Can the EVK be used as is with the demo or I must change some jumper position / resistors?

Is it correct that the EVK used as is should work well with the demo using Phy0/Phy4 in RMII mode?

Any useful information about the topic will be very appreciated!

0 Kudos
Reply
7 Replies

632 Views
silvio-vallorani
Contributor III

I solved my problems with the basic EtherCAT sample projects.
It seems I was having wiring issues.

However, the evkmimxrt1180_ecat_foe_cm33 sample does not have a "linkerscript" folder. This causes the FoE procedure to generate a hardfault when the code attempts to write the first bytes to flash.

I copied the linkerscript folder from the evkmimxrt1180_ota_mcuboot_basic_cm33 sample and it seems to work.

Can you confirm that these are the exact same linkerscripts I need in the FoE sample?

0 Kudos
Reply

621 Views
mayliu1
NXP Employee
NXP Employee

Hi @silvio-vallorani ,

Thanks for your updated information.

I check the  linkerscript folder from the evkmimxrt1180_ota_mcuboot_basic_cm33 demo,

This linker script folder involves the allocation of Flash code to SRAM.

https://www.nxp.com/docs/en/application-note/AN12564.pdf

There are some relevant descriptions in this application note.

mayliu1_0-1753754799180.png

Have you performed any Flash write operations in your project? If so, you need to add this linker script folder.

Best Regards

MayLiu

0 Kudos
Reply

773 Views
mayliu1
NXP Employee
NXP Employee

Hi @silvio-vallorani ,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.

1: Please ensure that your MCUXPresso IDE is compatible with your SDK library.

2: Please carefully read the contents in the readme file.

For multiple boards cascades, R142 register needs to be removed.

mayliu1_0-1753078176048.png

Wish it helps you.
If you still have question about it, please kindly let me know.

Wish you a nice day!

Best Regards
MayLiu

0 Kudos
Reply

767 Views
silvio-vallorani
Contributor III

Hi @mayliu1, thank you very much for your support!

My setup is:

  • MIMXRT1180-EVK - SCH-50577 REV C3 - 700-50577 REV C1
  • MCUXpresso IDE v25.6 [Build 136] [2025-06-27]
  • MCUXpresso SDK - SDK_2.x_MIMXRT1180-EVK - SDK Version 25.06.00
  • SSC TOOL v1.5.3.0
  • ONBOARD Debugger - MCU-LINK on-board (r1E2) CMSIS-DAP V3.160

I am able to generate SSC file using SSC Tool, compile the demo application evkmimxrt1180_ecat_digital_io_cm33 and start debug it, using the IDE and the onboard debugger.

The demo code is untouched except for the generated file using the SSC Tool.

Debugging the application I noticed that all the registers writes on the ECAT peripheral are ignored: as you can see on the attached image, the write of 0x01 in the register ECAT -> MII_MANAGEMENT_PDI_ACCESS_STATE is ignored (like all the other write in ECAT registers).

What I'am missing? 

If you need more information to help me, please don't esitate to ask.

0 Kudos
Reply

736 Views
mayliu1
NXP Employee
NXP Employee

Hi @silvio-vallorani ,

Thanks for your updated information.

Regarding your question, I suggest you refer to this Application Note.

This document explains
the usage of EtherCAT peripheral on i.MX RT1180 platform based on i.MX RT1180 SDK and MIMXRT1180- EVK board. It also describes the usage of the EtherCAT Slave Stack Code (SSC) tool and TwinCAT3 software in EtherCAT project.

https://docs.nxp.com/bundle/AN14155/page/topics/introduction.html

Please compare the differences between your operation and the operation in AN, and check whether  it is the cause of the issue.

Best Regards

MayLiu

0 Kudos
Reply

624 Views
silvio-vallorani
Contributor III

My setup is:

  • MIMXRT1180-EVK
  • MCUXpresso IDE 25.6
  • SDK_25.06.00_MIMXRT1180-EVK
0 Kudos
Reply

625 Views
silvio-vallorani
Contributor III
My setup is
MIMXRT1180-EVK
MCUXpresso IDE 25.6
SDK_25.06.00_MIMXRT1180-EVK
0 Kudos
Reply