Skip to content

Commit

Permalink
chipid: Add support for STM32L011 (NUCLEO-L011K4
Browse files Browse the repository at this point in the history
  • Loading branch information
xor-gate committed Feb 14, 2017
1 parent 2c0ab7f commit 67eba4b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/stlink/chipid.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ enum stlink_stm32_chipids {
STLINK_CHIPID_STM32_F0_CAN = 0x448,
STLINK_CHIPID_STM32_F7 = 0x449,
STLINK_CHIPID_STM32_F7XXXX = 0x451,
STLINK_CHIPID_STM32_L011 = 0x457,
STLINK_CHIPID_STM32_F410 = 0x458,
STLINK_CHIPID_STM32_F413 = 0x463
};
Expand Down
11 changes: 11 additions & 0 deletions src/chipid.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,17 @@ static const struct stlink_chipid_params devices[] = {
.bootrom_base = 0x1fff0000, // Tables 4-6, pages 80-81 (Bank 1 system memory)
.bootrom_size = 0x7000 // 28k (per bank), same source as base
},
{
// STM32L011
.chip_id = STLINK_CHIPID_STM32_L011,
.description = "L011 device",
.flash_type = STLINK_FLASH_TYPE_L0,
.flash_size_reg = 0x1ff8007c,
.flash_pagesize = 0x80,
.sram_size = 0x4000,
.bootrom_base = 0x1ff0000,
.bootrom_size = 0x1000
},


};
Expand Down

0 comments on commit 67eba4b

Please sign in to comment.