How to Debug a Custom Board with i.MX 8 MP via JTAG

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

How to Debug a Custom Board with i.MX 8 MP via JTAG

Jump to solution
378 Views
LeoZ77
Contributor I

How can I perform JTAG debugging on the M7 core using a custom board with the AXON-IMX8M-PLUS?

I was able to perform JTAG debugging on the M-core of the i.MX 8M Plus EVK by following the tutorial below.

MCUXSDKIMX8MPGSUG 

Debugging a custom board using the same method causes the i.MX to reset due to the JTAG TRST signal, preventing debugging from starting.

The JTAG circuit layout for the custom board is identical to that of the AXON-WIZARD-IMX8M-PLUS.

Why does a reset occur on the custom board but not on the evaluation board?

 

yocto: imx-6.6.52-2.2.0.xml 

build option: imx-image-full

IDE: VSCode, mcuxpresso

debugger: jlink base

Tags (2)
0 Kudos
Reply
1 Solution
273 Views
LeoZ77
Contributor I

Resolved.
I'm embarrassed to say, but the JTAG pin configuration was incorrect.

View solution in original post

0 Kudos
Reply
2 Replies
274 Views
LeoZ77
Contributor I

Resolved.
I'm embarrassed to say, but the JTAG pin configuration was incorrect.

0 Kudos
Reply
332 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,
For the EVK board, we recommend to refer this AN, so you can also refer this AN.

https://docs.nxp.com/bundle/AN14120/page/topics/introduction.html?_gl=1*1bb0dtd*_ga*MTg5ODQ3MTM0My4x....


Best Regards,
Zhiming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2197047%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20Debug%20a%20Custom%20Board%20with%20i.MX%208%20MP%20via%20JTAG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197047%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20can%20I%20perform%20JTAG%20debugging%20on%20the%20M7%20core%20using%20a%20custom%20board%20with%20the%20AXON-IMX8M-PLUS%3F%3C%2FP%3E%3CP%3EI%20was%20able%20to%20perform%20JTAG%20debugging%20on%20the%20M-core%20of%20the%20i.MX%208M%20Plus%20EVK%20by%20following%20the%20tutorial%20below.%3C%2FP%3E%3CP%3E%3CA%20title%3D%22MCUXSDKIMX8MPGSUG%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fpwmxy87654%2Fattachments%2Fpwmxy87654%2Fimx-processors%2F221028%2F1%2FGetting%2520Started%2520with%2520MCUXpresso%2520SDK%2520for%2520EVK-MIMX8MP.pdf%22%20target%3D%22_self%22%3EMCUXSDKIMX8MPGSUG%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDebugging%20a%20custom%20board%20using%20the%20same%20method%20causes%20the%20i.MX%20to%20reset%20due%20to%20the%20JTAG%20TRST%20signal%2C%20preventing%20debugging%20from%20starting.%3C%2FP%3E%3CP%3EThe%20JTAG%20circuit%20layout%20for%20the%20custom%20board%20is%20identical%20to%20that%20of%20the%20AXON-WIZARD-IMX8M-PLUS.%3C%2FP%3E%3CP%3EWhy%20does%20a%20reset%20occur%20on%20the%20custom%20board%20but%20not%20on%20the%20evaluation%20board%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eyocto%3A%26nbsp%3B%3CA%20title%3D%22imx-6.6.52-2.2.0.xml%22%20href%3D%22https%3A%2F%2Fgithub.com%2FTechNexion%2Ftn-imx-yocto-manifest%2Ftree%2Fscarthgap_6.6.y-next%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Eimx-6.6.52-2.2.0.xml%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ebuild%20option%3A%20imx-image-full%3C%2FP%3E%3CP%3EIDE%3A%20VSCode%2C%20mcuxpresso%3C%2FP%3E%3CP%3Edebugger%3A%20jlink%20base%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2197047%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208%20Family%20%7C%20i.MX%208QuadMax%20(8QM)%20%7C%208QuadPlus%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2201115%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20Debug%20a%20Custom%20Board%20with%20i.MX%208%20MP%20via%20JTAG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2201115%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EResolved.%3CBR%20%2F%3EI'm%20embarrassed%20to%20say%2C%20but%20the%20JTAG%20pin%20configuration%20was%20incorrect.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2197205%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20How%20to%20Debug%20a%20Custom%20Board%20with%20i.MX%208%20MP%20via%20JTAG%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2197205%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3EFor%20the%20EVK%20board%2C%20we%20recommend%20to%20refer%20this%20AN%2C%20so%20you%20can%20also%20refer%20this%20AN.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.nxp.com%2Fbundle%2FAN14120%2Fpage%2Ftopics%2Fintroduction.html%3F_gl%3D1*1bb0dtd*_ga*MTg5ODQ3MTM0My4xNzU2OTU0NTI1*_ga_WM5LE0KMSH*czE3NjIxMzAwNzEkbzEzOCRnMSR0MTc2MjE0NTA1NiRqMzckbDAkaDE2MDUwMTA5MzQ%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.nxp.com%2Fbundle%2FAN14120%2Fpage%2Ftopics%2Fintroduction.html%3F_gl%3D1*1bb0dtd*_ga*MTg5ODQ3MTM0My4xNzU2OTU0NTI1*_ga_WM5LE0KMSH*czE3NjIxMzAwNzEkbzEzOCRnMSR0MTc2MjE0NTA1NiRqMzckbDAkaDE2MDUwMTA5MzQ%3C%2FA%3E.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E