MCU Debug Halt After Writing Struct Data to Flash (STM32F4)
Hi everyone,
I’m working on an STM32F4 project where I save a configuration struct to internal flash memory to preserve settings across power cycles.
The first time I run my program and write the struct to flash, everything works fine. But the second time I try to debug, right after writing to flash, my debugger fails to halt the MCU and I get this error in STM32CubeProgrammer:
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
Encountered Error when opening C:\ST\STM32CubeIDE_1.15.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Has anyone experienced this issue when writing to flash during debugging?
