Skip to content

Commit

Permalink
Merge pull request #1250 from simon-wh/feature/gd32f3_xl_ob
Browse files Browse the repository at this point in the history
Added support for option bytes to F1xx_XLD (GD32F30x)
  • Loading branch information
Nightwalker-87 committed Jul 14, 2022
2 parents 951859c + 54e8234 commit 1724154
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/chips/F1xx_XLD.chip
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ flash_pagesize 0x800 // 2 KB
sram_size 0x18000 // 96 KB
bootrom_base 0x1fffe000
bootrom_size 0x1800 // 6 KB
option_base 0x0
option_size 0x0
option_base 0x1ffff800 // STM32_F0_OPTION_BYTES_BASE
option_size 0x10 // 16 B
flags swo
1 change: 1 addition & 0 deletions doc/devices_boards.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Tested non-official ST boards [incl. STLINK programmers]:
| Product-Code | Chip-ID | STLINK<br />Programmer | Boards |
| ------------ | ------- | ---------------------- | ---------------------------------- |
| GD32F303VGT6 | 0x430 | [v2] | STM32F303 clone from GigaDevice GD |
| GD32F303CGT6 | 0x430 | [v2] | STM32F303 clone from GigaDevice GD |

## STM32F4 / ARM Cortex M4F

Expand Down
2 changes: 1 addition & 1 deletion src/flashloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void set_flash_cr_pg(stlink_t *sl, unsigned bank) {
cr_reg = (bank == BANK_1) ? FLASH_H7_CR1 : FLASH_H7_CR2;
x |= (1 << FLASH_H7_CR_PG);
} else {
cr_reg = FLASH_CR;
cr_reg = (bank == BANK_1) ? FLASH_CR : FLASH_CR2;
x = (1 << FLASH_CR_PG);
}

Expand Down

0 comments on commit 1724154

Please sign in to comment.