MIMXRT1180-EVK for EthertCAT

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

MIMXRT1180-EVK for EthertCAT

979 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

786 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

775 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

927 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

921 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

890 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

778 Views
silvio-vallorani
Contributor III

My setup is:

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

779 Views
silvio-vallorani
Contributor III
My setup is
MIMXRT1180-EVK
MCUXpresso IDE 25.6
SDK_25.06.00_MIMXRT1180-EVK
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2136847%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMIMXRT1180-EVK%20for%20EthertCAT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136847%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ENeed%20help%20with%26nbsp%3B%3CSPAN%3Eevkmimxrt1180_ecat_digital_io_cm33%2Fcm7%20example%20for%20MIMXRT1180-EVK.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20can%20compile%2C%20flash%20and%20emulate%20the%20demo%20using%20MCUXpresso%20IDE%20and%20the%20SDK%2C%20but%20it%20seems%20do%20not%20correct%20configure%20the%20phys...%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EShould%20a%20working%20firmware%20turn%20on%20a%20led%20on%20the%20RJ%20connectors%20after%20hw%20init%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3ECan%20the%20EVK%20be%20used%20as%20is%20with%20the%20demo%20or%20I%20must%20change%20some%20jumper%20position%20%2F%20resistors%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIs%20it%20correct%20that%20the%20EVK%20used%20as%20is%20should%20work%20well%20with%20the%20demo%20using%20Phy0%2FPhy4%20in%20RMII%20mode%3F%3C%2FP%3E%3CP%3EAny%20useful%20information%20about%20the%20topic%20will%20be%20very%20appreciated!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2142140%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MIMXRT1180-EVK%20for%20EthertCAT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2142140%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252871%22%20target%3D%22_blank%22%3E%40silvio-vallorani%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20updated%20information.%3C%2FP%3E%0A%3CP%3EI%20check%20the%26nbsp%3B%3CSPAN%3E%26nbsp%3Blinkerscript%20folder%20from%20the%20evkmimxrt1180_ota_mcuboot_basic_cm33%20demo%2C%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThis%20linker%20script%20folder%20involves%20the%20allocation%20of%20Flash%20code%20to%20SRAM.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN12564.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fapplication-note%2FAN12564.pdf%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThere%20are%20some%20relevant%20descriptions%20in%20this%20application%20note.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_0-1753754799180.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_0-1753754799180.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F349832iB6F5600D130C26F6%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_0-1753754799180.png%22%20alt%3D%22mayliu1_0-1753754799180.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHave%20you%20performed%20any%20Flash%20write%20operations%20in%20your%20project%3F%20If%20so%2C%20you%20need%20to%20add%20this%20linker%20script%20folder.%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3EMayLiu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2141530%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MIMXRT1180-EVK%20for%20EthertCAT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2141530%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20solved%20my%20problems%20with%20the%20basic%20EtherCAT%20sample%20projects.%3CBR%20%2F%3EIt%20seems%20I%20was%20having%20wiring%20issues.%3C%2FP%3E%3CP%3EHowever%2C%20the%20evkmimxrt1180_ecat_foe_cm33%20sample%20does%20not%20have%20a%20%22linkerscript%22%20folder.%20This%20causes%20the%20FoE%20procedure%20to%20generate%20a%20hardfault%20when%20the%20code%20attempts%20to%20write%20the%20first%20bytes%20to%20flash.%3C%2FP%3E%3CP%3EI%20copied%20the%20linkerscript%20folder%20from%20the%20evkmimxrt1180_ota_mcuboot_basic_cm33%20sample%20and%20it%20seems%20to%20work.%3C%2FP%3E%3CP%3ECan%20you%20confirm%20that%20these%20are%20the%20exact%20same%20linkerscripts%20I%20need%20in%20the%20FoE%20sample%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2138309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MIMXRT1180-EVK%20for%20EthertCAT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2138309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252871%22%20target%3D%22_blank%22%3E%40silvio-vallorani%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThanks%20for%20your%20updated%20information.%3C%2FP%3E%0A%3CP%3ERegarding%20your%20question%2C%20I%20suggest%20you%20refer%20to%20this%20Application%20Note.%3C%2FP%3E%0A%3CP%3EThis%20document%20explains%3CBR%20%2F%3Ethe%20usage%20of%20EtherCAT%20peripheral%20on%20i.MX%20RT1180%20platform%20based%20on%20i.MX%20RT1180%20SDK%20and%20MIMXRT1180-%26nbsp%3BEVK%20board.%20It%20also%20describes%20the%20usage%20of%20the%20EtherCAT%20Slave%20Stack%20Code%20(SSC)%20tool%20and%20TwinCAT3%20software%26nbsp%3Bin%20EtherCAT%20project.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FAN14155%2Fpage%2Ftopics%2Fintroduction.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.nxp.com%2Fbundle%2FAN14155%2Fpage%2Ftopics%2Fintroduction.html%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EPlease%20compare%20the%20differences%20between%20your%20operation%20and%20the%20operation%20in%20AN%2C%20and%20check%20whether%26nbsp%3B%20it%20is%20the%20cause%20of%20the%20issue.%3C%2FP%3E%0A%3CP%3EBest%20Regards%3C%2FP%3E%0A%3CP%3EMayLiu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137226%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MIMXRT1180-EVK%20for%20EthertCAT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137226%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F239163%22%20target%3D%22_blank%22%3E%40mayliu1%3C%2FA%3E%2C%26nbsp%3Bthank%20you%20very%20much%20for%20your%20support!%3C%2FP%3E%3CP%3EMy%20setup%20is%3A%3C%2FP%3E%3CUL%3E%3CLI%3EMIMXRT1180-EVK%20-%20SCH-50577%20REV%20C3%20-%20700-50577%20REV%20C1%3C%2FLI%3E%3CLI%3EMCUXpresso%20IDE%20v25.6%20%5BBuild%20136%5D%20%5B2025-06-27%5D%3C%2FLI%3E%3CLI%3EMCUXpresso%20SDK%20-%20SDK_2.x_MIMXRT1180-EVK%20-%20SDK%20Version%2025.06.00%3C%2FLI%3E%3CLI%3ESSC%20TOOL%20v1.5.3.0%3C%2FLI%3E%3CLI%3EONBOARD%20Debugger%20-%26nbsp%3B%3CSPAN%3EMCU-LINK%20on-board%20(r1E2)%20CMSIS-DAP%20V3.160%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EI%20am%20able%20to%20generate%20SSC%20file%20using%20SSC%20Tool%2C%20compile%20the%20demo%20application%26nbsp%3Bevkmimxrt1180_ecat_digital_io_cm33%20and%20start%20debug%20it%2C%20using%20the%20IDE%20and%20the%20onboard%20debugger.%3C%2FP%3E%3CP%3EThe%20demo%20code%20is%20untouched%20except%20for%20the%20generated%20file%20using%20the%20SSC%20Tool.%3C%2FP%3E%3CP%3EDebugging%20the%20application%20I%20noticed%20that%20all%20the%20registers%20writes%20on%20the%20ECAT%20peripheral%20are%20ignored%3A%20as%20you%20can%20see%20on%20the%20attached%20image%2C%20the%20write%20of%200x01%20in%20the%20register%26nbsp%3B%3CSPAN%3EECAT%20-%26gt%3B%20MII_MANAGEMENT_PDI_ACCESS_STATE%20is%20ignored%20(like%20all%20the%20other%20write%20in%20ECAT%20registers).%3CBR%20%2F%3E%3CBR%20%2F%3EWhat%20I'am%20missing%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20need%20more%20information%20to%20help%20me%2C%20please%20don't%20esitate%20to%20ask.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MIMXRT1180-EVK%20for%20EthertCAT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137060%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F252871%22%20target%3D%22_blank%22%3E%40silvio-vallorani%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20interest%20in%20NXP%20Semiconductor%20products%20and%20for%20the%20opportunity%20to%20serve%20you.%3C%2FP%3E%0A%3CP%3E1%3A%26nbsp%3BPlease%20ensure%20that%20your%20MCUXPresso%20IDE%20is%20compatible%20with%20your%20SDK%20library.%3C%2FP%3E%0A%3CP%3E2%3A%20Please%20carefully%20read%20the%20contents%20in%20the%20readme%20file.%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EFor%20multiple%20boards%20cascades%2C%20R142%20register%20needs%20to%20be%20removed.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mayliu1_0-1753078176048.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22mayliu1_0-1753078176048.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F348403iE977CF7113D13991%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22mayliu1_0-1753078176048.png%22%20alt%3D%22mayliu1_0-1753078176048.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EWish%20it%20helps%20you.%3CBR%20%2F%3EIf%20you%20still%20have%20question%20about%20it%2C%20please%20kindly%20let%20me%20know.%3C%2FP%3E%0A%3CP%3EWish%20you%20a%20nice%20day!%3C%2FP%3E%0A%3CP%3EBest%20Regards%3CBR%20%2F%3EMayLiu%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136852%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MIMXRT1180-EVK%20for%20EthertCAT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136852%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMy%20setup%20is%3A%3C%2FP%3E%3CUL%3E%3CLI%3EMIMXRT1180-EVK%3C%2FLI%3E%3CLI%3EMCUXpresso%20IDE%2025.6%3C%2FLI%3E%3CLI%3ESDK_25.06.00_MIMXRT1180-EVK%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2136851%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20MIMXRT1180-EVK%20for%20EthertCAT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2136851%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EMy%20setup%20is%3CBR%20%2F%3EMIMXRT1180-EVK%3CBR%20%2F%3EMCUXpresso%20IDE%2025.6%3CBR%20%2F%3ESDK_25.06.00_MIMXRT1180-EVK%3C%2FLINGO-BODY%3E