Unable to write data to flash memory
Hey,
I have a stm32f407 discovery board, I flashed a code using stm32ide to store some integer data in sector 11 of flash memory(0x080E0000) and then read the data and blink led if it matched.
Now I commented the code to write data and tried just read data at that location, but when i tried to flash code using stm32ide onto the board it failed. Got this error in the console.
Error: ST-LINK error (DEV_TARGET_NOT_HALTED)
Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load D:\\Stm32_projects\\flash_memory\\Debug\\flash_memory.elf
Error message from debugger back end:
Error finishing flash operation
Failed to execute MI command:
load D:\\Stm32_projects\\flash_memory\\Debug\\flash_memory.elf
Error message from debugger back end:
Error finishing flash operation
Error finishing flash operation
But if I try to flash code using stlink utility it works fine.
