SWD Debug / Jlink MIMXRT1172

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

SWD Debug / Jlink MIMXRT1172

930 Views
TM_MI
Contributor III

Hello,

On our customized board based on EVK RT1176_AA. We run into an unusual behavior for SWD debugging.

Our processor is RT1172_8A. We don’t use QSPI flash. Debugger is Segger Jlink Pluse. Speed is auto or 4000kHz.

I used Jlink commander and I found out that on the first connection I cant HALT the CPU but if I reconnect during the same session then try to HALT everything seems ok. This could be the reason for the error when I debug from MCUxpresso.

Any idea on what can be the cause for such behavior?

 

TM_MI_0-1662488666490.png

TM_MI_1-1662488720774.png

 

second try

TM_MI_2-1662488757806.png

Thanks,

TM

0 Kudos
6 Replies

924 Views
jay_heng
NXP Employee
NXP Employee

It is caused by Debug Mailbox, when soft reset is issued under Non-XIP boot mode, PC will always be stuck in 0x223104

https://www.cnblogs.com/henjay724/p/15725966.html

920 Views
TM_MI
Contributor III

Hello @jay_heng ,

It is nice to see you answering some of my questions. I read some of your articles before. Great work.

It is strange that I am able to debug using JTAG (SWD didn't work) from mcuxpresso despite this issue, however the program doesn't seem to be executing (no blinking or change).

TM_MI_0-1662572610008.png

Going back to the problem, I read the article about this issue, I think the issue as you mentioned. PC is halted at 0x00223104 (both SWD Jtag) .

I don't know why I can load a nonXIP file using JTAG but no blinking after execution.

I attached the complete SWD and JTAG steps below. How to solve this issue since I don't have a QSPI flash on my board ?

Jtag:

TM_MI_1-1662574248954.png

 

SWD:

TM_MI_2-1662574946905.png

 

TM_MI_4-1662575017653.pngTM_MI_5-1662575036926.png

Thanks,

Tarek

0 Kudos

889 Views
CarlosGarabito
NXP TechSupport
NXP TechSupport

Hi @TM_MI 

I suggest this excellent blog, where you can see a part of your issue

https://www.cnblogs.com/henjay724/p/15725966.html

Have a good day

0 Kudos

887 Views
TM_MI
Contributor III

Hello @CarlosGarabito ,

I read the blog as it explains the issue but not solution.

I am trying to reconfigure the application to be able to debug using Jlink since I don't have a QSPI NOR memory.

I have a SEMC NAND which I was able to use with MCUBootUtility.

I would like to be able to debug using MCUxpressue and Jtage so I am looking for a way to reconfigure the application to have a nonxip with the NAND memory as the default flash ?

 

Thanks,

Tarek

0 Kudos

866 Views
CarlosGarabito
NXP TechSupport
NXP TechSupport
0 Kudos

847 Views
TM_MI
Contributor III

 

Hello @CarlosGarabito 

This thread was created by me. I was able to verify the board with the Blinky example 0x00002000.src from Mcubootutility apps file.

Now I a trying to generate my .s19 file from mcuxpresso. I followed this link to modify the code to work with SEMC NAND

https://www.cnblogs.com/henjay724/p/12591382.html

As you can see from picture I still get an error even after changing the vector table starting address.

If I choose to link the program to RAM from properties I get a different error.

TM_MI_0-1663600169574.png

TM_MI_1-1663600223501.png

TM_MI_2-1663600571451.png

 

when linked to RAM

TM_MI_0-1663601305650.png

 

Thank you,

TM

0 Kudos