From d6b24c00c8d7f8af05685e04225a28c072c0392c Mon Sep 17 00:00:00 2001 From: fabalthazar Date: Sat, 10 Apr 2021 19:35:32 +0200 Subject: [PATCH] Fixed STM32G43x/G44x option bytes support Previously took L4 values so FLASH_SEC1R was not applied --- src/target/stm32l4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target/stm32l4.c b/src/target/stm32l4.c index 1014ccc5..dc494ad2 100644 --- a/src/target/stm32l4.c +++ b/src/target/stm32l4.c @@ -648,7 +648,8 @@ static bool stm32l4_cmd_option(target *t, int argc, char *argv[]) len = 11; for (int i = 0; i < len; i++) values[i] = g4_values[i]; - } else if (t->idcode == ID_STM32G49) { /* G4 cat 4*/ + } else if ((t->idcode == ID_STM32G43) || (t->idcode == ID_STM32G49)) { + /* G4 cat 2 and 4 (single bank) */ i2offset = g4_i2offset; len = 6; for (int i = 0; i < len; i++)