How to avoid erasing the entire program in the Flash
Hello,
I'm working on stm32h7 with the STM32CubeIDE IDE and I'd like to know how to make sure that when the debug starts it doesn't delete the whole program. Let me explain:
in my flash memory I have data in a specific location and specific size that I've written via the program and that I want to keep.
The problem is that when I launch the debug, it deletes the entire flash memory to write the new program.
Is it possible not to erase a specific memory location?
(I've tried with KEEP and NOLOAD in the linker script but it doesn't work).
thank you
