Skip to content

Commit

Permalink
Correct address for STM32F2 flash size register
Browse files Browse the repository at this point in the history
There was a typo in the flash size register address for STM32F2. Change
to correct address. Verified against STM32F207 reference manual
(RM0033 Rev 5 section 33.2), and an STM32F217 chip.
  • Loading branch information
JonasNorling committed Jan 22, 2014
1 parent 1189143 commit 2e6ba20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stlink-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static const chip_params_t devices[] = {
{ // table 1, PM0059
.chip_id = STM32_CHIPID_F2,
.description = "F2 device",
.flash_size_reg = 0x1ff7a22, /* RM0033 sind Rev 4*/
.flash_size_reg = 0x1fff7a22, /* As in RM0033 Rev 5*/
.flash_pagesize = 0x20000,
.sram_size = 0x20000,
.bootrom_base = 0x1fff0000,
Expand Down

0 comments on commit 2e6ba20

Please sign in to comment.