How to Debug Code Executing from OctoSPI / OTFDEC in Keil MDK?
Hi guys,
I'm currently utilising SBSFU as an external flash secure bootloader (with all security settings turned off for debug) using the STM32H7B3's OTFDEC (On-the-fly Decryption) peripheral.
My user application boots and runs via the OFTDEC and memory-mapped OCTOSPI flash just fine via the SBSFU bootloader mapping to the region 0x90000000, however, whilst I'm able to attach my debugger to the process and see and step through lines of assembly, as soon as I load my linker file to link the process to my source code via
LOAD %L INCREMENTALI receive an error 57: illegal address (0x90000400) which is the correct and seemingly valid memory-mapped start address of the application. The keyword INCREMENTAL makes sure that the debugger doesn't restart the CPU when adding the linking information so the OTFDEC mapping should still be valid.
Does anyone have any suggestions or experience in debugging memory-mapped programs or in doing so with Keil MDK?
Many thanks
