RT10xx Debug when booting a plain load image

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

RT10xx Debug when booting a plain load image

156 Views
dinocroc123
Contributor II

I have an application that requires booting from the qspi to SDRAM. I got that to work by setting the plain load checkbox in mcuexpresso, making the SDRAM start at 0x80002000 and modifying the Boot Data structure (BOOT_DATA_T in the fsl_flexspi_nor_boot.c file) to have a start location of 0x80002000, so that the image can be loaded straight to sdram including all the headers. This works fine and i can use the debugger in attach only mode. However it is annoying to first load the image into flash with the GUI Flash tool in the debug configuration. When i debug directly i get execution at some bogus address, i think it's because the debugger tries to stop early or something. How would i set this up so that i can have a one click workflow?

Thanks in advance,

Konstantin

0 Kudos
1 Reply

141 Views
diego_charles
NXP TechSupport
NXP TechSupport

Hi @dinocroc123 

I understand that you want to simply click on the debug button to program and debug a NON-XIP image ( executed in SDRAM ) Therefore, I suggest to check the answer in this thread : RT1170 debugging when application is built for SDRAM .

 I hope this helps,

Diego

0 Kudos