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?
second try
Thanks,
TM
It is caused by Debug Mailbox, when soft reset is issued under Non-XIP boot mode, PC will always be stuck in 0x223104
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).
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:
SWD:
Thanks,
Tarek
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
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
You can check this thread https://community.nxp.com/t5/i-MX-Processors/MIMXRT-1176-SEMC-NAND-Config/m-p/1518034#M194829
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.
when linked to RAM
Thank you,
TM