flash/nor/stm32lx: Add 'option_load' command

Add command to re-load option bytes.

Tested with STM32L072CZ and STM32L152RCT6.

Change-Id: I5653f2222a48af1fe0332d4bdc3552e481e375d0
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8998
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Marc Schink
2025-07-14 07:01:58 +00:00
committed by Tomas Vanek
parent 1ea763d23c
commit a1c7cd4fef
2 changed files with 38 additions and 1 deletions

View File

@@ -8422,6 +8422,12 @@ data). This is the only way to unlock a protected flash (unless RDP
Level is 2 which can't be unlocked at all).
The @var{num} parameter is a value shown by @command{flash banks}.
@end deffn
@deffn {Command} {stm32lx option_load} num
Forces a re-load of the option byte registers.
This command will cause a system reset of the device.
The @var{num} parameter is a value shown by @command{flash banks}.
@end deffn
@end deffn
@deffn {Flash Driver} {stm32l4x}