E_EEPROM_XMC4 protect memory from being over-written during flash programming

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User13960
Level 3
Level 3
First like received
Hi all,

I am planning to use the E_EEPROM_XMC4 App to store a non volatile variable in FLASH memory. The variable will be written once in the product lifetime (it is a license key)

Is it possible to protect the variable from being over-written while updating the firmware via flash programming when using a a programming tool like XMC-Link / XMCFlasher or Mini-Wiggler / DAVE IDE

In other words how do I locate the variable in a location that flash programming won't reach.

Thank you in advance
PHAB
0 Likes
1 Reply
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

You can use the write protection feature of the FLASH sectors.
See Flash Protection in the reference manual and the related XMCLib functions in xmc4_flash.h

Regards,
Jesus
0 Likes