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!
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?
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.
Have you performed any Flash write operations in your project? If so, you need to add this linker script folder.
Best Regards
MayLiu
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.
Wish it helps you.
If you still have question about it, please kindly let me know.
Wish you a nice day!
Best Regards
MayLiu
Hi @mayliu1, thank you very much for your support!
My setup is:
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.
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
My setup is: