Debugger steps and runs slowly
I started learning embedded systems recently, and have been using the Nucleo-F303RE board with the STM32CubeIDE toolchain. Recently, I compiled a program and started stepping through it in the debugger. Everything worked fine as always. I started to modify a single line of code, but decided not to make any changes as I wanted to run the debugger again first. Despite being the exact same program, it took much longer to reach the breakpoint in main from the startup ... maybe 10 seconds instead of 1.5 seconds. Single stepping through a line or a single instruction worked, but was clearly must slower than before. Stepping over a function that writes maybe 10 registers took about 10 seconds. When I let the program run freely, it was no longer reaching a breakpoint in my SysTick handler, even though it was before. How can I get the debugger to work?
I tried cleaning the project and rebuilding, but that didn't work. I tried another simple program to make sure the board or ST_Link wasn't somehow the problem and that DID work ... so it seems to be specific to this project, but it did work earlier?? I made a new project from cubeMX from scratch and copied the application source and header files and recompiled and the problem persists.
I'm not sure how to proceed.
