I have a project where I need to have the setting “set(PICO_COPY_TO_RAM 1)” in the CMakeLists. This is because I have another device on my board which utilizes the SPI flash memory from which the Pico device loads the program memory contents.
However, whenever I have PICO_COPY_TO_RAM set, I cannot set a breakpoint in my main method — I think, since the breakpoint is set for the Flash address and not the RAM address, so the debugger never detects the breakpoint is reached.
When I hit F10, I can break into the entry point. I can continue to hit F10, but as soon as I execute the command to branch to the BOOTROM vector, the debugger stops working at that moment and any breakpoints set in main() are not hit.
Is there any workaround so that I can break into my main() method whenever PICO_COPY_TO_RAM is set to 1?
-
This topic was modified 1 month, 2 weeks ago by jafeucht.