stm32l4x: add OTP support for STM32 G0/G4/L4/L4+/L5/WB/WL devices
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Sun, 22 Mar 2020 19:39:44 +0000 (20:39 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Wed, 24 Mar 2021 17:15:38 +0000 (17:15 +0000)
commitb8fd9aecb12a5d930cf3e3e09cede4cd6787e847
treed275e97ac5e358436e1e1be42a5608dd507ad400
parentf13bb10e267f9d474901a0f7b4fbb2975920668c
stm32l4x: add OTP support for STM32 G0/G4/L4/L4+/L5/WB/WL devices

this is a rework of #5320 started by Andreas then abandoned.

same syntax as in stm32f2x driver:

  enable OTP for writing
  > stm32l4x otp 1 enable

  write to OTP
  > flash write_bank 1 foo.bin 0
  > flash filld 0x1FFF7000 0xDeadBeafBaadF00d 1

  read OTP
  > mdw 0x1FFF7000 4

  disable OTP
  > stm32l4x otp 1 disable

Change-Id: Id7d7c163b35d7a3f406dc200d7e2fc293b0675c2
Signed-off-by: Andreas Bolsch <hyphen0break@gmail.com>
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/5537
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
doc/openocd.texi
src/flash/nor/stm32l4x.c
tcl/target/stm32g0x.cfg
tcl/target/stm32g4x.cfg
tcl/target/stm32l4x.cfg
tcl/target/stm32l5x.cfg
tcl/target/stm32wbx.cfg
tcl/target/stm32wlx.cfg