Hi everyone,
I ask help to solve an annoying situation.
I'm working on a custom board with a RT1064 device, MCUXpresso 11.8.1 and PEMicro Univesal Multilink debugger.
In my board I use a custom bootloader that loads the application from the internal QSPI dataflash to the external SDRAM and then jumps to the apllication that runs in the SDRAM: everything is working fine.
I can debug the application in the SDRAM, using a script that initialize the SDRAM controller and loads the application. The problem is that when I start the debug session the bootloader starts and loads in SDRAM the application saved in flash, overwriting the application loaded with MCUXpresso.
To avoid this, I need to write a different application (a blinking led) in the internal flash: in such a case I can successfully debug the application loaded with MCUXpresso in the SDRAM.
So I need to program the bootloader in the internal flash to test the runtime behavior and the blinking led application to debug, switching when as I need.
Is there a way for the bootloader to distinguish that I'm debugging and avoid the application loading from flash to SDRAM?
Many thanks
Biafra