Skip to content

Commit

Permalink
Added support fo STM32L0x chip id and base params.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiří Netolický committed Aug 1, 2014
1 parent f5b8603 commit ee68f19
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/stlink-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ee68f19

Please sign in to comment.