chipid: Initial support for STM32F410
authorJerry Jacobs <jerry.jacobs@dualinventive.com>
Thu, 19 May 2016 07:01:14 +0000 (09:01 +0200)
committerJerry Jacobs <jerry.jacobs@dualinventive.com>
Thu, 19 May 2016 07:03:18 +0000 (09:03 +0200)
include/stlink/chipid.h
src/chipid.c

index 48215088ff80d7b67bb4dc663bfa6f615b98d479..351bb553764d3470cd525d3d34759705dae585f9 100644 (file)
@@ -51,7 +51,8 @@ enum stlink_stm32_chipids {
        STLINK_CHIPID_STM32_F303_HIGH        = 0x446,
        STLINK_CHIPID_STM32_L0_CAT5          = 0x447,
        STLINK_CHIPID_STM32_F0_CAN           = 0x448,
-       STLINK_CHIPID_STM32_F7               = 0x449
+       STLINK_CHIPID_STM32_F7               = 0x449,
+       STLINK_CHIPID_STM32_F410             = 0x458
 };
 
 /**
index 92daeb28aff121a0c20b02bc54ff5e136afef957..b4fd2d66a05985309d9c2e2c2a6fe89076a24d54 100644 (file)
@@ -196,6 +196,17 @@ static const struct stlink_chipid_params devices[] = {
             .bootrom_base = 0x1fff0000,
             .bootrom_size = 0x7800
         },
+        {
+            // STM32F410 MCUs. Support based on DM00180366.pdf (RM0401) document.
+            .chip_id = STLINK_CHIPID_STM32_F410,
+            .description = "F410 device",
+            .flash_type = FLASH_TYPE_F4,
+            .flash_size_reg = 0x1fff7a22,
+            .flash_pagesize = 0x4000,
+            .sram_size = 0x8000,
+            .bootrom_base = 0x1fff0000,
+            .bootrom_size = 0x7800
+        },
         {
             // This is STK32F303VCT6 device from STM32 F3 Discovery board.
             // Support based on DM00043574.pdf (RM0316) document.