Support Category 4 device (stm32g491)

Category 4 devices are 2K block size and do not have banks

Closes #1403
pull/1414/head
Mark Salyzyn 2024-06-11 17:34:28 -04:00
rodzic 32ce4bf88a
commit 96e1da63a6
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -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);