Skip to content

Commit

Permalink
Merge pull request #857 from mrfirmware/stm32g03x-support
Browse files Browse the repository at this point in the history
Improved support for STM32G0xx series parts to fix Issue #850
  • Loading branch information
Nightwalker-87 committed Mar 16, 2020
2 parents 5e70eb3 + 05531ca commit 15eda53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/stlink/chipid.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ enum stlink_stm32_chipids {
STLINK_CHIPID_STM32_G4_CAT2 = 0x468, // See: RM 0440 s46.6.1 "MCU device ID code".
STLINK_CHIPID_STM32_G4_CAT3 = 0x469,
STLINK_CHIPID_STM32_L4RX = 0x470, // taken from the STM32L4R9I-DISCO board
STLINK_CHIPID_STM32_G07X = 0x460, // Actually, 'G070 and 'G071/081
STLINK_CHIPID_STM32_G03X = 0x466, // Actually, 'G030 and 'G031/041
STLINK_CHIPID_STM32_WB55 = 0x495
};

Expand Down
11 changes: 11 additions & 0 deletions src/chipid.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,17 @@ static const struct stlink_chipid_params devices[] = {
.bootrom_base = 0x1fff0000,
.bootrom_size = 0x7000 // 28K (table 2)
},
{
// STM32G031/041 (from RM0454 & RM0444)
.chip_id = STLINK_CHIPID_STM32_G03X,
.description = "G030/G031/G041 device",
.flash_type = STLINK_FLASH_TYPE_G0,
.flash_size_reg = 0x1FFF75E0, // Section 38.2
.flash_pagesize = 0x800, // 2K (sec 3.2)
.sram_size = 0x2000, // 8K (sec 2.3)
.bootrom_base = 0x1fff0000,
.bootrom_size = 0x2000 // 8k (table 2)
},
{
// STM32WB55 (from RM0434)
.chip_id = STLINK_CHIPID_STM32_WB55,
Expand Down

0 comments on commit 15eda53

Please sign in to comment.