]> git.gag.com Git - fw/stlink/commitdiff
Added support fo STM32L0x chip id and base params.
authorJiří Netolický <netolicky@epos.cd.cz>
Wed, 9 Jul 2014 13:13:31 +0000 (15:13 +0200)
committerJiří Netolický <netolicky@epos.cd.cz>
Fri, 1 Aug 2014 19:27:25 +0000 (21:27 +0200)
src/stlink-common.h

index 898b2a59a6d248f5ffa5d644ea50dff961dfabb7..0a3c5d16217a1dc9216bb5dc73e09fd75a263d80 100644 (file)
@@ -105,7 +105,7 @@ extern "C" {
 #define STM32_CHIPID_F1_HIGH        0x414
 
 #define STM32_CHIPID_L1_MEDIUM      0x416
-
+#define STM32_CHIPID_L0             0x417
 #define STM32_CHIPID_F1_CONN        0x418
 #define STM32_CHIPID_F4_HD          0x419
 #define STM32_CHIPID_F1_VL_MEDIUM   0x420
@@ -377,7 +377,18 @@ extern "C" {
             .bootrom_base = 0x1fffd800,
             .bootrom_size = 0x2000
         },
-    };
+        {
+            // STM32L0x
+            // RM0367,RM0377 documents was used to find these parameters
+            .chip_id = STM32_CHIPID_L0,
+            .description = "L0x3 device",
+            .flash_size_reg = 0x1ff8007c,
+            .flash_pagesize = 0x80,
+            .sram_size = 0x2000,
+            .bootrom_base = 0x1ff0000,
+            .bootrom_size = 0x1000
+        },
+ };
 
 
     typedef struct {