From 4212d7a394dfde424a681155df1b59f4d1593e5d Mon Sep 17 00:00:00 2001 From: Angus Peart Date: Thu, 3 Nov 2016 13:44:13 -0700 Subject: [PATCH] add STM32F303 targets --- src/target/stm32f1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/target/stm32f1.c b/src/target/stm32f1.c index 61d6f0e..3c72384 100644 --- a/src/target/stm32f1.c +++ b/src/target/stm32f1.c @@ -133,7 +133,9 @@ bool stm32f1_probe(target *t) return true; case 0x422: /* STM32F30x */ case 0x432: /* STM32F37x */ + case 0x438: /* STM32F303x6/8 and STM32F328 */ case 0x439: /* STM32F302C8 */ + case 0x446: /* STM32F303xD/E and STM32F398xE */ t->driver = "STM32F3"; target_add_ram(t, 0x20000000, 0x10000); stm32f1_add_flash(t, 0x8000000, 0x80000, 0x800); @@ -307,7 +309,9 @@ static bool stm32f1_cmd_option(target *t, int argc, char *argv[]) switch(t->idcode) { case 0x422: /* STM32F30x */ case 0x432: /* STM32F37x */ + case 0x438: /* STM32F303x6/8 and STM32F328 */ case 0x440: /* STM32F0 */ + case 0x446: /* STM32F303xD/E and STM32F398xE */ flash_obp_rdp_key = FLASH_OBP_RDP_KEY_F3; break; default: flash_obp_rdp_key = FLASH_OBP_RDP_KEY;