Following in the directions of this post, I am able to reserve and write to (and read back) from a section of FLASH dedicated to calibration data.
Problem:
However, when I reprogram the device, the IDE wipes the whole memory clean before programming and we lose all the data. Since we are in a debugging cycle, we are constantly reprogramming and have to write the calibration back as a first step every time.
Is there a way to tell the IDE to only erase a certain region of memory corresponding to the program data? Thanks.
flash erase_sector num first last
/stm32f4x unlock 0
/flash protect 0 0 last off
/flash write_image [erase] [unlock] filename [offset] [type]
and similar commands in the docs. – rel