EtherCAT demo on MIMXRT1180-EVK

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

EtherCAT demo on MIMXRT1180-EVK

1,287 Views
pnc
Contributor II

Hello,

I am using the MIMXRT1180-EVK Eval Board to try out the EtherCAT Demo as described in UG10322 UG10322: OOBE Guide for EtherCAT with ICE Tool | NXP Semiconductors

I have downloaded the Ethercat Eval Binaries from i.MX RT1180 Evaluation Kit | NXP Semiconductors 

I have carefully followed all the steps. I am able to flash the binary successfully and launch the ICE tool with configurations described in above doc.

However, when I select the Network Interface in the GUI and try to enable ethercat, I get "could not be enabled". If I scan the interface, I get "0 devices found"

I am using a Window Laptop, and have connected to ETH0 and ETH4 using a USB 3-to-Gigabit Ethernet adapter, which otherwise works fine (I use it for other work too).

Any help to troubleshoot this would be appreciated. 

Also, can you point me to the sources of this EtherCat Eval binary :goal_nxp_evkmimxrt1180_rtos_flash_boot.bin? I have checked out your SDK, and I see some EtherCat examples, but I am not sure if any of these examples correspond to the above binary.

 

thanks

regards

pnc

0 Kudos
Reply
5 Replies

1,122 Views
pnc
Contributor II

Hi Diego, 

thanks for your response, but I had already taken care of these issues previously, so it did not help.

Anyway, I have changed tacks now: instead of trying to use the pre-built image, I am now trying to build and run the ecat/digital_io example from SDK, using the AN14155 User Guide (Using the i.MX RT1180 EtherCAT together with BECKOFF TwinCAT3 and SSC tool Rev. 1.0)

Here also I am facing the same problem. I am able to build, flash and run the example (both for CM33 and CM7). I have put a printf in the main loop in digitial_ip.c to verify that it is indeed running.

However, I am stuck in section 5.1.8 of AN14155 : If I do a scan for EtherCAT devices using TwinCAT, it says "No I/O Devices found". I have tried connecting the Ethernet cable to both J28 and J32.

I have made the following jumper settings: J63, J73 and J72,J65 have been moved to 1-2 shorted position (non default position)

I don't know if any other jumper settings or other HW settings are required for Ecat. Other than these , all jumpers are in the default position (what it was out of the box). The only other jumper change I made was for using the Segger probe (JP5 shorted).

Btw, I have also tried running the ICE Tool. Same situation as before. 

I would appreciate if you could provide any inputs

 

thanks

regards

Pnc

 

 

0 Kudos
Reply

1,114 Views
pnc
Contributor II

On re-reading the EVK user manual UM12021 carefully, I think I made a mistake with jumpers. Here is what I have now:

J63 and J65 : default 2-3 shorted

J73 and J72: non-default 1-2 shorted

HOWEVER, it is STILL not working, even after above changes.

Also, I am not sure if this line on page 36 is relevant "Multiplexing between ECAT and FLEXSPI2 signals is implemented through resistor reconfiguration. By default, the FLEXSPI2 connection is enabled."

Do I need to do something about this too? If so, what?

By the way, this EVK User Manual is really hard to read. I really think you ought to write in a concise and clear way in one place, what users need to do to get the ECAT stuff working on EVK. A simple "Make these jumper settings to enable ECAT on EVK....." instead of all the scattered pieces of confusing information.

0 Kudos
Reply

1,077 Views
pnc
Contributor II

Hi Diego,

On restarting everything this morning, the Scan of devices started working. I guess the changes I made yesterday evening to th jumpers had effect.

pnc_0-1764763036879.png

However, if I do a scan of Device 1, I do not see "Box 1" as described in section 5.1.9, so it seems the slave is not getting detected. I am not seeing any traffic related to EtherCAT in Wireshark also. I am debugging further, but if you have any hints, that would be highly appreciated!

 

0 Kudos
Reply

1,242 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @pnc 

Thank you for reaching out

We already located some issues with first release the UG10332,(and we will updated it)

Please see below an internal report a colleague generated, hopefully it can help you 

 In page 5, for step 12, the RT1180-EVK Console should be MCU-Link USB, not USB_OTG1. And for the Note, it seems there is no section called EEPROM.
On my side, after step 11 of section 5.4, the font color of the EtherCAT interface will not turn red, only after step 15, it will trun red.
In Table 1 and Table 2 of page 24, the mapped objects listed in the table are inconsistent with the actual display of the ICE tool.
On my side, before step 9 of section 5.4, need to configure the IP address of the host PC, otherwise will report internal error.

Let us  know if you still  face further  troubles or have further related questions

All the best, 

Diego

0 Kudos
Reply

1,282 Views
pnc
Contributor II

By the way, are any specific jumper setting required for the EtherCAST demo? The abovementioned doc does not mention anything in this regard.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2249306%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EEtherCAT%20demo%20on%20MIMXRT1180-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249306%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20using%20the%26nbsp%3BMIMXRT1180-EVK%20Eval%20Board%20to%20try%20out%20the%20EtherCAT%20Demo%20as%20described%20in%26nbsp%3BUG10322%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FUG10322%2Fpage%2Ftopics%2Frevision_history.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EUG10322%3A%20OOBE%20Guide%20for%20EtherCAT%20with%20ICE%20Tool%20%7C%20NXP%20Semiconductors%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20have%20downloaded%20the%20Ethercat%20Eval%20Binaries%20from%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fdevelopment-boards-and-designs%2FMIMXRT1180-EVK%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ei.MX%20RT1180%20Evaluation%20Kit%20%7C%20NXP%20Semiconductors%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20carefully%20followed%20all%20the%20steps.%20I%20am%20able%20to%20flash%20the%20binary%20successfully%20and%20launch%20the%20ICE%20tool%20with%20configurations%20described%20in%20above%20doc.%3C%2FP%3E%3CP%3EHowever%2C%20when%20I%20select%20the%20Network%20Interface%20in%20the%20GUI%20and%20try%20to%20enable%20ethercat%2C%20I%20get%20%22could%20not%20be%20enabled%22.%20If%20I%20scan%20the%20interface%2C%20I%20get%20%220%20devices%20found%22%3C%2FP%3E%3CP%3EI%20am%20using%20a%20Window%20Laptop%2C%20and%20have%20connected%20to%20ETH0%20and%20ETH4%20using%20a%20USB%203-to-Gigabit%20Ethernet%20adapter%2C%20which%20otherwise%20works%20fine%20(I%20use%20it%20for%20other%20work%20too).%3C%2FP%3E%3CP%3EAny%20help%20to%20troubleshoot%20this%20would%20be%20appreciated.%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%2C%20can%20you%20point%20me%20to%20the%20sources%20of%20this%20EtherCat%20Eval%20binary%20%3Agoal_nxp_evkmimxrt1180_rtos_flash_boot.bin%3F%20I%20have%20checked%20out%20your%20SDK%2C%20and%20I%20see%20some%20EtherCat%20examples%2C%20but%20I%20am%20not%20sure%20if%20any%20of%20these%20examples%20correspond%20to%20the%20above%20binary.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethanks%3C%2FP%3E%3CP%3Eregards%3C%2FP%3E%3CP%3Epnc%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249823%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EtherCAT%20demo%20on%20MIMXRT1180-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249823%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%2F257368%22%20target%3D%22_blank%22%3E%40pnc%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20reaching%20out%3C%2FP%3E%0A%3CP%3EWe%20already%20located%20some%20issues%20with%20first%20release%20the%20UG10332%2C(and%20we%20will%20updated%20it)%3C%2FP%3E%0A%3CP%3EPlease%20see%20below%20an%20internal%20report%20a%20colleague%20generated%2C%20hopefully%20it%20can%20help%20you%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%3E%26nbsp%3BIn%20page%205%2C%20for%20step%2012%2C%20the%20RT1180-EVK%20Console%20should%20be%20MCU-Link%20USB%2C%20not%20USB_OTG1.%20And%20for%20the%20Note%2C%20it%20seems%20there%20is%20no%20section%20called%20EEPROM.%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EOn%20my%20side%2C%20after%20step%2011%20of%20section%205.4%2C%20the%20font%20color%20of%20the%20EtherCAT%20interface%20will%20not%20turn%20red%2C%20only%20after%20step%2015%2C%20it%20will%20trun%20red.%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EIn%20Table%201%20and%20Table%202%20of%20page%2024%2C%20the%20mapped%20objects%20listed%20in%20the%20table%20are%20inconsistent%20with%20the%20actual%20display%20of%20the%20ICE%20tool.%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%3EOn%20my%20side%2C%20before%20step%209%20of%20section%205.4%2C%20need%20to%20configure%20the%20IP%20address%20of%20the%20host%20PC%2C%20otherwise%20will%20report%20internal%20error.%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%3CLI-WRAPPER%3E%3C%2FLI-WRAPPER%3E%3C%2FP%3E%0A%3CP%3ELet%20us%26nbsp%3B%20know%20if%20you%20still%26nbsp%3B%20face%20further%26nbsp%3B%20troubles%20or%20have%20further%20related%20questions%3C%2FP%3E%0A%3CP%3EAll%20the%20best%2C%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDiego%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EtherCAT%20demo%20on%20MIMXRT1180-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249309%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EBy%20the%20way%2C%20are%20any%20specific%20jumper%20setting%20required%20for%20the%20EtherCAST%20demo%3F%20The%20abovementioned%20doc%20does%20not%20mention%20anything%20in%20this%20regard.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2253238%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EtherCAT%20demo%20on%20MIMXRT1180-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253238%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Diego%2C%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%20for%20your%20response%2C%20but%20I%20had%20already%20taken%20care%20of%20these%20issues%20previously%2C%20so%20it%20did%20not%20help.%3C%2FP%3E%3CP%3EAnyway%2C%20I%20have%20changed%20tacks%20now%3A%20instead%20of%20trying%20to%20use%20the%20pre-built%20image%2C%20I%20am%20now%20trying%20to%20build%20and%20run%20the%20ecat%2Fdigital_io%20example%20from%20SDK%2C%20using%20the%26nbsp%3BAN14155%20User%20Guide%20(Using%20the%20i.MX%20RT1180%20EtherCAT%20together%20with%20BECKOFF%20TwinCAT3%20and%20SSC%20tool%26nbsp%3BRev.%201.0)%3C%2FP%3E%3CP%3EHere%20also%20I%20am%20facing%20the%20same%20problem.%20I%20am%20able%20to%20build%2C%20flash%20and%20run%20the%20example%20(both%20for%20CM33%20and%20CM7).%20I%20have%20put%20a%20printf%20in%20the%20main%20loop%20in%20digitial_ip.c%20to%20verify%20that%20it%20is%20indeed%20running.%3C%2FP%3E%3CP%3EHowever%2C%20I%20am%20stuck%20in%20section%205.1.8%20of%20AN14155%20%3A%20If%20I%20do%20a%20scan%20for%20EtherCAT%20devices%20using%20TwinCAT%2C%20it%20says%20%22No%20I%2FO%20Devices%20found%22.%20I%20have%20tried%20connecting%20the%20Ethernet%20cable%20to%20both%20J28%20and%20J32.%3C%2FP%3E%3CP%3EI%20have%20made%20the%20following%20jumper%20settings%3A%20J63%2C%20J73%20and%20J72%2CJ65%20have%20been%20moved%20to%201-2%20shorted%20position%20(non%20default%20position)%3C%2FP%3E%3CP%3EI%20don't%20know%20if%20any%20other%20jumper%20settings%20or%20other%20HW%20settings%20are%20required%20for%20Ecat.%20Other%20than%20these%20%2C%20all%20jumpers%20are%20in%20the%20default%20position%20(what%20it%20was%20out%20of%20the%20box).%20The%20only%20other%20jumper%20change%20I%20made%20was%20for%20using%20the%20Segger%20probe%20(JP5%20shorted).%3C%2FP%3E%3CP%3EBtw%2C%20I%20have%20also%20tried%20running%20the%20ICE%20Tool.%20Same%20situation%20as%20before.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20would%20appreciate%20if%20you%20could%20provide%20any%20inputs%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethanks%3C%2FP%3E%3CP%3Eregards%3C%2FP%3E%3CP%3EPnc%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2253380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EtherCAT%20demo%20on%20MIMXRT1180-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2253380%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOn%20re-reading%20the%20EVK%20user%20manual%20UM12021%20carefully%2C%20I%20think%20I%20made%20a%20mistake%20with%20jumpers.%20Here%20is%20what%20I%20have%20now%3A%3C%2FP%3E%3CP%3E%3CSPAN%3EJ63%20and%20J65%26nbsp%3B%3A%20default%202-3%20shorted%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EJ73%20and%20J72%3A%20non-default%201-2%20shorted%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHOWEVER%2C%20it%20is%20STILL%20not%20working%2C%20even%20after%20above%20changes.%3C%2FP%3E%3CP%3EAlso%2C%20I%20am%20not%20sure%20if%20this%20line%20on%20page%2036%20is%20relevant%20%22Multiplexing%20between%20ECAT%20and%20FLEXSPI2%20signals%20is%20implemented%20through%20resistor%20reconfiguration.%20By%20default%2C%20the%20FLEXSPI2%20connection%20is%20enabled.%22%3C%2FP%3E%3CP%3EDo%20I%20need%20to%20do%20something%20about%20this%20too%3F%20If%20so%2C%20what%3F%3C%2FP%3E%3CP%3EBy%20the%20way%2C%20this%20EVK%20User%20Manual%20is%20really%20hard%20to%20read.%20I%20really%20think%20you%20ought%20to%20write%20in%20a%20concise%20and%20clear%20way%20in%20one%20place%2C%20what%20users%20need%20to%20do%20to%20get%20the%20ECAT%20stuff%20working%20on%20EVK.%20A%20simple%20%22Make%20these%20jumper%20settings%20to%20enable%20ECAT%20on%20EVK.....%22%20instead%20of%20all%20the%20scattered%20pieces%20of%20confusing%20information.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2254211%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20EtherCAT%20demo%20on%20MIMXRT1180-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2254211%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Diego%2C%3C%2FP%3E%3CP%3EOn%20restarting%20everything%20this%20morning%2C%20the%20Scan%20of%20devices%20started%20working.%20I%20guess%20the%20changes%20I%20made%20yesterday%20evening%20to%20th%20jumpers%20had%20effect.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22pnc_0-1764763036879.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pnc_0-1764763036879.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F368430i0E266716D1BCF70C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22pnc_0-1764763036879.png%22%20alt%3D%22pnc_0-1764763036879.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHowever%2C%20if%20I%20do%20a%20scan%20of%20Device%201%2C%20I%20do%20not%20see%20%22Box%201%22%20as%20described%20in%20section%205.1.9%2C%20so%20it%20seems%20the%20slave%20is%20not%20getting%20detected.%20I%20am%20not%20seeing%20any%20traffic%20related%20to%20EtherCAT%20in%20Wireshark%20also.%20I%20am%20debugging%20further%2C%20but%20if%20you%20have%20any%20hints%2C%20that%20would%20be%20highly%20appreciated!%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E