How to start code debugging from on-chip bootROM

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

How to start code debugging from on-chip bootROM

594 Views
burhanhagi
Contributor IV

I am digging to understand how flexspi config codes (512 bytes) is being called in boot header. 
I set my code to run on SDRAM. I am also trying to understand how onchip bootROM copies that code residing in Qspi Flash to Sdram. 
Is it possible to halt/run step by step code at these addresses with debugger? (From the first code, much prior to getting into main ) I am using imxrt1170 and ULink-2 Debugger.

 
By the way, I am also running debugger with the command “ Run to Line” in MCUXpresso IDE. Putting/Removing breakpoint on some code lines is not working in my IDE(Mcuxpresso v11.8.1).

When I try to put breakpoint, IDE shows with a crosssign on breakpoint. So it does not allow to me put anywhere I put. How can I correct this error? Thanks.

0 Kudos
Reply
1 Reply

555 Views
Sam_Gao
NXP Employee
NXP Employee

Hi,

It seems some issues happend when you are debugging, I would like to recommand to use NXP MCUXPresso, please download Instruction Trace https://www.nxp.com/webapp/Download?colCode=MCUXPRESSO-IT (CH5 Trobleshooting), or SWO Trace Guide https://www.nxp.com/webapp/Download?colCode=MCUXPRESSO-SWO-TRACE&appType=license 

For Command Line, please refer to this user guide. https://www.nxp.com/webapp/Download?colCode=MCUXPRESSO-IDE-COMMAND-LINE-UG 

• Instruction Trace - capturing an instruction stream within the onboard RAM of the MCU. This data can then
be retrieved, decoded, and displayed within the IDE.
• SWO Trace - capturing events occurring on a running MCU in real time

0 Kudos
Reply