Preserving EEPROM-Emulation area when programming new code - VScode with JLink
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-30 6: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.
- Labels:
-
VSCode for STM32
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-30 1:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-12-30 1:45 PM
