]> git.gag.com Git - fw/stlink/commitdiff
Added STM32F401RE chip id.
authorJens Hoffmann <jehoffma@gmail.com>
Fri, 21 Feb 2014 14:12:16 +0000 (15:12 +0100)
committerJens Hoffmann <jehoffma@gmail.com>
Fri, 21 Feb 2014 14:12:16 +0000 (15:12 +0100)
Nucleo F401RE board got 512K flash and 96K sram. This commit adds
device definition for this controller.

src/stlink-common.h

index 40056040837a9bdc4a9e46a08eb7073efc96b724..8430fc55d21463b55c6759fae597b17a5567ecfe 100644 (file)
@@ -106,6 +106,7 @@ extern "C" {
 #define STM32_CHIPID_F4 0x413
 #define STM32_CHIPID_F4_HD 0x419
 #define STM32_CHIPID_F4_LP 0x423
+#define STM32_CHIPID_F4_DE 0x433
 #define STM32_CHIPID_F1_HIGH 0x414
 #define STM32_CHIPID_L1_MEDIUM 0x416
 #define STM32_CHIPID_L1_MEDIUM_PLUS 0x427
@@ -204,6 +205,15 @@ static const chip_params_t devices[] = {
                     .bootrom_base = 0x1fff0000,
                     .bootrom_size = 0x7800
         },
+        {
+            .chip_id = STM32_CHIPID_F4_DE,
+                    .description = "F4 device (Dynamic Efficency)",
+                    .flash_size_reg = 0x1FFF7A22,
+                    .flash_pagesize = 0x4000,
+                    .sram_size = 0x18000,
+                    .bootrom_base = 0x1fff0000,
+                    .bootrom_size = 0x7800
+        },
         {
             .chip_id = STM32_CHIPID_F1_HIGH,
                     .description = "F1 High-density device",