stlink: Add STM32F303 High Density Support
authorKyle Manna <kyle@kylemanna.com>
Thu, 23 Apr 2015 01:48:27 +0000 (18:48 -0700)
committerKyle Manna <kyle@kylemanna.com>
Fri, 24 Apr 2015 00:05:29 +0000 (17:05 -0700)
* STK32F303RET6 device from STM32 F3 Nucelo board

src/stlink-common.h

index 3021691c6a07277047d513787c0d30cad95d1b63..ac267e2bafa244ff9395a2b8681cd520eac24cc5 100644 (file)
@@ -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
+        },
 
  };