From 3b37cbf3c6a64d672271a9ce1257fa338ed493bc Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 22 Apr 2015 18:48:27 -0700 Subject: [PATCH] stlink: Add STM32F303 High Density Support * STK32F303RET6 device from STM32 F3 Nucelo board --- src/stlink-common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/stlink-common.h b/src/stlink-common.h index 3021691..ac267e2 100644 --- a/src/stlink-common.h +++ b/src/stlink-common.h @@ -134,6 +134,8 @@ extern "C" { #define STM32_CHIPID_F04 0x445 +#define STM32_CHIPID_F303_HIGH 0x446 + #define STM32_CHIPID_F0_CAN 0x448 /* @@ -432,6 +434,17 @@ extern "C" { .bootrom_base = 0x1fffd800, .bootrom_size = 0x2000 }, + { + // This is STK32F303RET6 device from STM32 F3 Nucelo board. + // Support based on DM00043574.pdf (RM0316) document rev 5. + .chip_id = STM32_CHIPID_F303_HIGH, + .description = "F303 high density device", + .flash_size_reg = 0x1ffff7cc, // 34.2.1 Flash size data register + .flash_pagesize = 0x800, // 4.2.1 Flash memory organization + .sram_size = 0x10000, // 3.3 Embedded SRAM + .bootrom_base = 0x1fffd800, // 3.3.2 / Table 4 System Memory + .bootrom_size = 0x2000 + }, }; -- 2.30.2