IMXRT1171 - cannot Debug into RAM.

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

IMXRT1171 - cannot Debug into RAM.

Jump to solution
2,192 Views
BRK_Y
Contributor III

Hi,

I am using SDK ram linker. I defined the macro XIP_BOOT_HEADER_ENABLE=0. But I cannot debug.

I created a new project from MCUxpresso, defined only the RAM memories, and checked the 'link application to RAM' option:

BrK__0-1717677929051.png

With this created project, I can debug via RAM.

I would replace the MEMORY definitions created by Xpresso with those of the SDK, but I still have not gotten any results.

What are the differences between the SDK and the project created by mcuxpresso? Why can't I debug RAM in my own environment with the SDK?

 

0 Kudos
Reply
1 Solution
2,107 Views
BRK_Y
Contributor III

Hello @Habib_MS, thank you for your interest. I found the solution to my problem.

I added the following setting to the visual code launch configurations and now I can debug the ram.

 

"overrideLaunchCommands": [ "monitor halt", "monitor reset", "load" ],

 

View solution in original post

0 Kudos
Reply
2 Replies
2,150 Views
Habib_MS
NXP Employee
NXP Employee

Hello @BRK_Y,

In order to support you better, could you please provide me the next information when you presented the error?

-SDK example that you cannot debug.

-SDK version.
-MCUXpresso version.

-Debugger information.

 

BR
Habib

0 Kudos
Reply
2,108 Views
BRK_Y
Contributor III

Hello @Habib_MS, thank you for your interest. I found the solution to my problem.

I added the following setting to the visual code launch configurations and now I can debug the ram.

 

"overrideLaunchCommands": [ "monitor halt", "monitor reset", "load" ],

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1882764%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMXRT1171%20-%20cannot%20Debug%20into%20RAM.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1882764%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EI%20am%20using%20SDK%20ram%20linker.%26nbsp%3BI%20defined%20the%20macro%20XIP_BOOT_HEADER_ENABLE%3D0.%26nbsp%3BBut%20I%20cannot%20debug.%3C%2FP%3E%3CP%3EI%20created%20a%20new%20project%20from%20MCUxpresso%2C%20defined%20only%20the%20RAM%20memories%2C%20and%20checked%20the%20'link%20application%20to%20RAM'%20option%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22BrK__0-1717677929051.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22BrK__0-1717677929051.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F282878iE0667ADD9088E993%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22BrK__0-1717677929051.png%22%20alt%3D%22BrK__0-1717677929051.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWith%20this%20created%20project%2C%20I%20can%20debug%20via%20RAM.%3C%2FP%3E%3CP%3EI%20would%20replace%20the%20MEMORY%20definitions%20created%20by%20Xpresso%20with%20those%20of%20the%20SDK%2C%20but%20I%20still%20have%20not%20gotten%20any%20results.%3C%2FP%3E%3CP%3EWhat%20are%20the%20differences%20between%20the%20SDK%20and%20the%20project%20created%20by%20mcuxpresso%3F%20Why%20can't%20I%20debug%20RAM%20in%20my%20own%20environment%20with%20the%20SDK%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1884174%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMXRT1171%20-%20cannot%20Debug%20into%20RAM.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1884174%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F231807%22%20target%3D%22_blank%22%3E%40Habib_MS%3C%2FA%3E%2C%20thank%20you%20for%20your%20interest.%20I%20found%20the%20solution%20to%20my%20problem.%3C%2FP%3E%3CP%3EI%20added%20the%20following%20setting%20to%20the%20visual%20code%20launch%20configurations%20and%20now%20I%20can%20debug%20the%20ram.%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E%22overrideLaunchCommands%22%3A%20%5B%20%22monitor%20halt%22%2C%20%22monitor%20reset%22%2C%20%22load%22%20%5D%2C%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1883847%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20IMXRT1171%20-%20cannot%20Debug%20into%20RAM.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1883847%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%20lang%3D%22es-MX%22%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%20size%3D%223%22%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F210673%22%20target%3D%22_blank%22%3E%40BrK_%3C%2FA%3E%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%20size%3D%223%22%3EIn%20order%20to%20support%20you%20better%2C%20could%20you%20please%20provide%20me%20the%20next%20information%20when%20you%20presented%20the%20error%3F%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%20size%3D%223%22%3E-SDK%20example%20that%20you%20cannot%20debug.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%20size%3D%223%22%3E-SDK%20version.%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%20size%3D%223%22%3E-MCUXpresso%20version.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%20size%3D%223%22%3E-Debugger%20information.%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22margin%3A%200in%3B%20font-family%3A%20Calibri%3B%20font-size%3A%2011.0pt%3B%22%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%20size%3D%223%22%3EBR%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20face%3D%22arial%2Chelvetica%2Csans-serif%22%20size%3D%223%22%3EHabib%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E