Skip to content

Commit

Permalink
Support Category 4 device (stm32g491)
Browse files Browse the repository at this point in the history
Category 4 devices are 2K block size and do not have banks

Closes #1403
  • Loading branch information
salyzyn committed Jul 15, 2024
1 parent 32ce4bf commit 96e1da6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stlink-lib/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ int32_t stlink_load_device_params(stlink_t *sl) {
sl->sram_size = 0x1000;
}

if (sl->chip_id == STM32_CHIPID_G4_CAT3 ||
sl->chip_id == STM32_CHIPID_G4_CAT4) {
if (sl->chip_id == STM32_CHIPID_G4_CAT3) {
uint32_t flash_optr;
stlink_read_debug32(sl, FLASH_Gx_OPTR, &flash_optr);

Expand Down

0 comments on commit 96e1da6

Please sign in to comment.