iMX 8MNano trace support

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

iMX 8MNano trace support

1,758 Views
jemecj
Contributor I
I’m an engineer working on trace support in our debug tool for the i.MX8M Nano. I’ve encountered an issue with the parallel trace, the ETB works fine, but I can’t capture any data using parallel trace. The pins are correctly configured (confirmed with a logic analyzer), but trace messages aren’t being propagated from the trace sources to the output pins.
 
Is there any known issue with any of the CoreSight components on this device, or anything specific I should be aware of?
 
Also, could someone please provide the debug schematic showing the trace connection path (from the ETM through all components to the TPIU)?
0 Kudos
Reply
7 Replies

1,371 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

I think you already get the email for special spport for it, so close it now. Thanks.

0 Kudos
Reply

1,698 Views
jemecj
Contributor I

What about the replicator and ETB? I would assume that after the funnel, the trace goes through the replicator, which then splits it between the TPIU and ETB.

Could you also provide details on which funnel channel each ETM is connected to?

0 Kudos
Reply

1,570 Views
jemecj
Contributor I

Anything new? I am still looking for an answer.

0 Kudos
Reply

1,517 Views
jemecj
Contributor I

Hi,

thanks for reply, but this is to generic. I am quite familiar with ETM, ETB and other Coresight components.  Here, I am asking you about the iMX8MNano specifics, that are not described in general files you provided.

To properly connect trace path from sources to drains I have to know exactly how trace messages are propagated.  With that I mean for example which funnel's channel has connection to specific component. 


Best regards,
Jaka

0 Kudos
Reply

1,475 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

I am not good at it, but do not worry I will confirm in my side for you, then give you reply. Thanks for your kinddly understandings.

0 Kudos
Reply

1,704 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

The actual trace path is internal to the SoC and not exposed in public schematics.

Rita_Wang_0-1761302945804.png

 

  • Verify ETM and TPIU are enabled in the device tree and kernel.
  • Check trace funnel routing in the CoreSight topology.
  • Ensure trace clock is active and matches your analyzer’s expectations.

 

 

I found this maybe do help for you:

www2.lauterbach.com/pdf/training_arm_etm.pdf

 

 

 

 

 

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2188883%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EiMX%208MNano%20trace%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2188883%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CDIV%3EI%E2%80%99m%20an%20engineer%20working%20on%20trace%20support%20in%20our%20debug%20tool%20for%20the%20i.MX8M%20Nano.%20I%E2%80%99ve%20encountered%20an%20issue%20with%20the%20parallel%20trace%2C%20the%20ETB%20works%20fine%2C%20but%20I%20can%E2%80%99t%20capture%20any%20data%20using%20parallel%20trace.%20The%20pins%20are%20correctly%20configured%20(confirmed%20with%20a%20logic%20analyzer)%2C%20but%20trace%20messages%20aren%E2%80%99t%20being%20propagated%20from%20the%20trace%20sources%20to%20the%20output%20pins.%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EIs%20there%20any%20known%20issue%20with%20any%20of%20the%20CoreSight%20components%20on%20this%20device%2C%20or%20anything%20specific%20I%20should%20be%20aware%20of%3F%3C%2FDIV%3E%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%3EAlso%2C%20could%20someone%20please%20provide%20the%20debug%20schematic%20showing%20the%20trace%20connection%20path%20(from%20the%20ETM%20through%20all%20components%20to%20the%20TPIU)%3F%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2206449%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20iMX%208MNano%20trace%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2206449%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20think%20you%20already%20get%20the%20email%20for%20special%20spport%20for%20it%2C%20so%20close%20it%20now.%20Thanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2201561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20iMX%208MNano%20trace%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2201561%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20am%20not%20good%20at%20it%2C%20but%20do%20not%20worry%20I%20will%20confirm%20in%20my%20side%20for%20you%2C%20then%20give%20you%20reply.%20Thanks%20for%20your%20kinddly%20understandings.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2200781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20iMX%208MNano%20trace%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2200781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3Ethanks%20for%20reply%2C%20but%20this%20is%20to%20generic.%20I%20am%20quite%20familiar%20with%20ETM%2C%20ETB%20and%20other%20Coresight%20components.%26nbsp%3B%20Here%2C%20I%20am%20asking%20you%20about%20the%20iMX8MNano%20specifics%2C%20that%20are%20not%20described%20in%20general%20files%20you%20provided.%3C%2FP%3E%3CP%3ETo%20properly%20connect%20trace%20path%20from%20sources%20to%20drains%20I%20have%20to%20know%20exactly%20how%20trace%20messages%20are%20propagated.%26nbsp%3B%20With%20that%20I%20mean%20for%20example%20which%20funnel's%20channel%20has%20connection%20to%20specific%26nbsp%3B%3CSPAN%3Ecomponent.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CBR%20%2F%3EBest%20regards%2C%3CBR%20%2F%3EJaka%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2200622%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20iMX%208MNano%20trace%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2200622%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20found%20some%20useful%20links%2C%20hope%20can%20do%20help%20for%20you%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwiki.dave.eu%2Findex.php%2FMITO8M-AN-001%3A_Advanced_multicore_debugging%2C_tracing%2C_and_energy_profiling_with_Lauterbach_TRACE32%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMITO8M-AN-001%3A%20Advanced%20multicore%20debugging%2C%20tracing%2C%20and%20energy%20profiling%20with%20Lauterbach%20TRACE32%20-%20DAVE%20Developer's%20Wiki%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww2.lauterbach.com%2Fpdf%2Fapp_arm_coresight.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ESetup%20of%20the%20Debugger%20for%20a%20CoreSight%20System%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fstatic.linaro.org%2Fconnect%2Flca14%2Fpresentations%2FLCA14-210-%2520ETM-ETB-Coresight%2520BoF.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ELCA14-210-%20ETM-ETB-Coresight%20BoF.pdf%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2198313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20iMX%208MNano%20trace%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2198313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAnything%20new%3F%20I%20am%20still%20looking%20for%20an%20answer.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2192518%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20iMX%208MNano%20trace%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2192518%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EWhat%20about%20the%20replicator%20and%20ETB%3F%20I%20would%20assume%20that%20after%20the%20funnel%2C%20the%20trace%20goes%20through%20the%20replicator%2C%20which%20then%20splits%20it%20between%20the%20TPIU%20and%20ETB.%3C%2FP%3E%3CP%3ECould%20you%20also%20provide%20details%20on%20which%20funnel%20channel%20each%20ETM%20is%20connected%20to%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2192509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20iMX%208MNano%20trace%20support%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2192509%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThe%20actual%20trace%20path%20is%20internal%20to%20the%20SoC%20and%20not%20exposed%20in%20public%20schematics.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Rita_Wang_0-1761302945804.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Rita_Wang_0-1761302945804.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362507iC3A609B48B695E03%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Rita_Wang_0-1761302945804.png%22%20alt%3D%22Rita_Wang_0-1761302945804.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EVerify%20ETM%20and%20TPIU%20are%20enabled%3C%2FSTRONG%3E%20in%20the%20device%20tree%20and%20kernel.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ECheck%20trace%20funnel%20routing%3C%2FSTRONG%3E%20in%20the%20CoreSight%20topology.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EEnsure%20trace%20clock%20is%20active%3C%2FSTRONG%3E%20and%20matches%20your%20analyzer%E2%80%99s%20expectations.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20found%20this%20maybe%20do%20help%20for%20you%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww2.lauterbach.com%2Fpdf%2Ftraining_arm_etm.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ewww2.lauterbach.com%2Fpdf%2Ftraining_arm_etm.pdf%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E