2024-12-30 06:40 AM
I already posted this question on stackexchange, but unfortunately no answers, so please don't me asking here again.
I'm using the last flash page (page 31: 0x0800 F800 - 0x0800 FFFF2) as eeprom emulation area on my STM32G030C8.
I'm working with VScode and programming + debugging the flash with JLink over USB.
Is there a way to prevent the eeprom emulation area from being erased when programming new code, as there is stored some calibration data?
Where or how can I manage erasing only part of the flash, when using normal build and debugging command in VScode?
Thanks!
Solved! Go to Solution.
2024-12-30 01:45 PM
2024-12-30 10:30 AM
Does the J-Link (J-Flash) do full erase? Is this what it says in its log?
Just ensure that your program file (elf or hex) does not contain code or data in these flash sectors and they should not be erased when programming.
2024-12-30 01:45 PM