Skip to content

Commit

Permalink
Fixes to accept STM32F1 devices
Browse files Browse the repository at this point in the history
  • Loading branch information
EmerickH committed Jul 15, 2018
1 parent 79306cc commit e9f2399
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/flash_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,18 @@ int stlink_flash_loader_write_to_sram(stlink_t *sl, stm32_addr_t* addr, size_t*
if (retval == -1) {
return retval;
}
} else if (sl->chip_id == STLINK_CHIPID_STM32_F0 || sl->chip_id == STLINK_CHIPID_STM32_F04 || sl->chip_id == STLINK_CHIPID_STM32_F0_CAN || sl->chip_id == STLINK_CHIPID_STM32_F0_SMALL || sl->chip_id == STLINK_CHIPID_STM32_F09X) {
} else if (sl->chip_id == STLINK_CHIPID_STM32_F0 ||
sl->chip_id == STLINK_CHIPID_STM32_F04 ||
sl->chip_id == STLINK_CHIPID_STM32_F0_CAN ||
sl->chip_id == STLINK_CHIPID_STM32_F0_SMALL ||
sl->chip_id == STLINK_CHIPID_STM32_F09X ||
sl->chip_id == STLINK_CHIPID_STM32_F1_MEDIUM ||
sl->chip_id == STLINK_CHIPID_STM32_F1_LOW ||
sl->chip_id == STLINK_CHIPID_STM32_F1_HIGH ||
sl->chip_id == STLINK_CHIPID_STM32_F1_CONN ||
sl->chip_id == STLINK_CHIPID_STM32_F1_VL_MEDIUM_LOW ||
sl->chip_id == STLINK_CHIPID_STM32_F1_VL_HIGH
) {
loader_code = loader_code_stm32f0;
loader_size = sizeof(loader_code_stm32f0);
} else if ((sl->chip_id == STLINK_CHIPID_STM32_L4) ||
Expand Down

0 comments on commit e9f2399

Please sign in to comment.