atsamv: add support for user signature partition write

Embedded flash also has a user signature area. This is a 512
bytes large page whose data are not erased by asserting ERASE pin or by
software ERASE command. It may be used to store configuration, keys,
trimming values etc.

This commit adds option to access this area from OpenOCD.

Change-Id: If870aa85938b9cccd94f958dd1f3d93dbdf779f0
Signed-off-by: Michal Lenc <michallenc@seznam.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/8302
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Tested-by: jenkins
This commit is contained in:
Michal Lenc
2024-05-31 11:27:38 +02:00
committed by Tomas Vanek
parent e971d677c0
commit 5d333337b6
2 changed files with 268 additions and 49 deletions

View File

@@ -58,4 +58,6 @@ if {![using_hla]} {
}
set _FLASHNAME $_CHIPNAME.flash
set _SIGNATURENAME $_CHIPNAME.usersignature
flash bank $_FLASHNAME atsamv 0x00400000 0 0 0 $_TARGETNAME
flash bank $_SIGNATURENAME atsamv 0x100000000 0 0 0 $_TARGETNAME