From e9f239939e10489e06af5d8a97ddebb7bbd3dc88 Mon Sep 17 00:00:00 2001 From: Emerick Herve Date: Sun, 15 Jul 2018 15:55:35 +0200 Subject: [PATCH] Fixes to accept STM32F1 devices --- src/flash_loader.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/flash_loader.c b/src/flash_loader.c index 7684680a7..5f8690e89 100644 --- a/src/flash_loader.c +++ b/src/flash_loader.c @@ -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) ||