Debugging Flash Bootloader and External Flash Application - Can't Set Breakpoint
Hello all
I have a STM32H730 project on a custom board.
I have two W25Q16JW 2MB Flash connected to the OctalSPI in Dual-Quad mode.
I have created a Flashloader ".stdlr" for my external Flash - its all working great in Cube Programmer and I can erase/program/debug a application from CubeIDE too.
I have an Application program running in my External Flash (XIP mode) - I can debug this project fine.
I have a small Bootloader program running in internal STM Flash (128K Flash) - I can debug this project fine.
My issue is when trying to debug both .elf files going from from Bootloader to Application.
(Reference : https://github.com/ethanhuanginst/STM32CubeIDE-Workshop-2019/tree/master/hands-on/09_BOOT-APP)
I can start CubeIDE debugging in the Bootloader, step through my code and place breakpoints, but when I step into the Application and try and single step, or place a Breakpoint, I get this message;
Error: Failed to set breakpoint at address: 0x90003da8.
Error: Failed to set more breakpoints
PS. 0x90000000 is the External Flash memory address.
What could be preventing the debugger from placing these breakpoints?
Any help would be really appreciated.
Thanks