This is an automated email from Gerrit. "Ahmed Haoues <[email protected]>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9358
-- gerrit commit 81c5806b7c27a9f977493b8c34bd468f5b9c0c71 Author: HAOUES Ahmed <[email protected]> Date: Wed Dec 31 11:35:18 2025 +0100 flash/stm32l4x: Fix permanent write protection on STM32WBA5 STM32WBA5 has an UNLOCK bit in FLASH_WRPAR and FLASH_WRPBR registers Change-Id: I4b8fe4aaa9cd336f07aaf5bad0c44834ead70499 Signed-off-by: HAOUES Ahmed <[email protected]> diff --git a/src/flash/nor/stm32l4x.c b/src/flash/nor/stm32l4x.c index 82cd96aec8..6a7fb58f2c 100644 --- a/src/flash/nor/stm32l4x.c +++ b/src/flash/nor/stm32l4x.c @@ -751,7 +751,8 @@ static const struct stm32l4_part_info stm32l4_parts[] = { .num_revs = ARRAY_SIZE(stm32wba5x_revs), .device_str = "STM32WBA5x", .max_flash_size_kb = 1024, - .flags = F_QUAD_WORD_PROG | F_HAS_TZ | F_HAS_L5_FLASH_REGS, + .flags = F_QUAD_WORD_PROG | F_HAS_TZ | F_HAS_L5_FLASH_REGS + | F_WRP_HAS_LOCK, .flash_regs_base = 0x40022000, .fsize_addr = 0x0BF907A0, .otp_base = 0x0FF90000, --
