Add L0 Category 2 device (chip id: 0x425)
[fw/stlink] / include / stlink.h
index c29e2a66373b2004c3ac42dc34ce4c5ace1a2cca..1ccbb84169614feba66010d2e504c3978f857d36 100644 (file)
@@ -138,6 +138,7 @@ extern "C" {
 
 #define STM32_CHIPID_F303_HIGH      0x446
 #define STM32_CHIPID_L0_CAT5        0x447
+#define STM32_CHIPID_L0_CAT2        0x425
 
 #define STM32_CHIPID_F0_CAN         0x448
 
@@ -517,6 +518,18 @@ extern "C" {
             .bootrom_base = 0x1ff0000,
             .bootrom_size = 0x2000
         },
+        {
+            // STM32L0x Category 2
+            // RM0367,RM0377 documents was used to find these parameters
+            .chip_id = STM32_CHIPID_L0_CAT2,
+            .description = "L0x Category 2 device",
+            .flash_type = FLASH_TYPE_L0,
+            .flash_size_reg = 0x1ff8007c,
+            .flash_pagesize = 0x80,
+            .sram_size = 0x2000,
+            .bootrom_base = 0x1ff0000,
+            .bootrom_size = 0x1000
+        },
         {
             // STM32F334
             // RM0364 document was used to find these parameters