Tomas Vanek
cbc32c3831
flash/nor/stm32l4x: fix permanent write protection on STM32U5
...
Unlike other devices supported by this driver STM32U5 devices
have a new UNLOCK bit in FLASH_WRP1AR, WRP1BR, WRP2AR, WRP2BR
registers. Writing zero to this bit makes the write protection
block permanent with no way to unprotect.
Commit 6554d176e9 ("flash/stm32l4x: support STM32U59/U5Ax devices")
and later commits with additional U5 devices lack support for
the UNLOCK bit and therefore makes write protection permanent
without warning.
Introduce the new bit flag F_WRP_HAS_LOCK and mark U5 devices by it.
Set UNLOCK bit in stm32l4_write_one_wrpxy() if F_WRP_HAS_LOCK is set.
Change-Id: I26b97d855e094a21540e3377f367520683af2eac
Signed-off-by: Tomas Vanek <vanekt@fbl.cz >
Reviewed-on: https://review.openocd.org/c/openocd/+/8981
Tested-by: jenkins
2025-07-06 04:45:29 +00:00
..
2022-09-18 08:22:01 +00:00
2024-10-05 15:45:19 +00:00
2025-05-25 12:45:33 +00:00
2024-10-05 15:45:19 +00:00
2024-10-05 15:45:19 +00:00
2022-09-18 08:22:01 +00:00
2024-06-15 14:11:16 +00:00
2024-10-05 15:45:19 +00:00
2024-10-05 15:45:19 +00:00
2024-10-05 15:45:19 +00:00
2024-10-05 15:45:19 +00:00
2023-01-15 14:47:30 +00:00
2025-06-13 16:23:24 +00:00
2025-06-13 16:23:24 +00:00
2023-09-23 14:31:25 +00:00
2022-09-13 22:13:50 +00:00
2023-09-23 14:31:25 +00:00
2022-09-13 22:13:50 +00:00
2024-10-05 15:45:19 +00:00
2024-10-05 15:45:19 +00:00
2024-10-05 15:45:19 +00:00
2024-10-05 15:45:19 +00:00
2025-06-29 07:31:22 +00:00
2025-06-29 07:31:37 +00:00
2022-09-18 08:22:01 +00:00
2025-01-31 03:25:53 +00:00
2025-01-31 03:25:53 +00:00
2023-08-26 11:35:06 +00:00
2024-07-13 16:47:44 +00:00
2024-04-01 05:51:33 +00:00
2022-09-18 08:22:01 +00:00
2022-09-18 08:22:01 +00:00
2025-01-25 10:31:06 +00:00
2022-09-18 08:22:01 +00:00
2024-10-05 15:45:19 +00:00
2022-07-23 13:16:27 +00:00
2023-09-23 14:33:37 +00:00
2025-01-25 10:31:06 +00:00
2025-01-25 10:32:45 +00:00
2022-09-18 08:22:01 +00:00
2025-02-16 16:21:16 +00:00
2022-12-03 09:24:59 +00:00
2022-09-18 08:22:01 +00:00
2025-04-25 09:41:44 +00:00
2024-10-05 15:45:19 +00:00
2022-09-18 08:22:01 +00:00
2022-09-18 08:22:01 +00:00
2024-06-15 14:11:16 +00:00
2022-09-13 22:13:50 +00:00
2025-03-09 13:25:54 +00:00
2025-01-25 10:31:06 +00:00
2022-09-18 08:22:01 +00:00
2022-07-23 13:16:27 +00:00
2023-09-23 14:31:25 +00:00
2024-07-13 22:22:17 +00:00
2023-05-05 22:08:21 +00:00
2024-10-05 15:48:23 +00:00
2022-07-23 13:16:27 +00:00
2024-06-23 09:33:47 +00:00
2025-01-25 10:31:06 +00:00
2024-10-05 15:45:19 +00:00
2024-10-05 15:49:04 +00:00
2023-06-10 16:58:35 +00:00
2022-09-18 08:22:01 +00:00
2025-06-29 07:41:27 +00:00
2025-02-21 21:20:15 +00:00
2024-12-21 10:25:58 +00:00
2024-09-15 09:15:06 +00:00
2022-09-18 08:22:01 +00:00
2024-10-05 15:45:19 +00:00
2025-06-07 10:01:31 +00:00
2022-07-23 13:16:27 +00:00
2025-04-19 09:25:09 +00:00
2023-12-30 13:13:24 +00:00
2024-06-15 14:11:16 +00:00
2023-11-18 11:33:09 +00:00
2025-07-06 04:45:29 +00:00
2025-07-06 04:45:29 +00:00
2022-11-28 22:23:47 +00:00
2024-09-15 09:15:06 +00:00
2022-07-23 13:16:27 +00:00
2022-09-18 08:22:01 +00:00
2022-09-18 08:22:01 +00:00
2022-09-18 08:22:01 +00:00
2025-02-16 16:23:03 +00:00
2023-05-18 10:07:34 +00:00
2025-06-07 10:05:48 +00:00
2024-10-05 15:45:19 +00:00
2022-09-18 08:22:01 +00:00
2022-09-18 08:22:01 +00:00
2024-10-05 15:49:04 +00:00
2024-10-05 15:45:19 +00:00
2022-09-18 08:22:01 +00:00