From b40c2436b68a35544a1eae10f4b6a3de7648a566 Mon Sep 17 00:00:00 2001 From: nightwalker-87 <15526941+Nightwalker-87@users.noreply.github.com> Date: Thu, 27 Feb 2020 01:56:59 +0100 Subject: [PATCH] Hotfix: Reverts commit 6692fdc. CKS32-Clone-Patch broke flashing on STM32 F3xx, F4xx and L1xx. (#761) --- include/stm32.h | 1 - src/flash_loader.c | 1 - 2 files changed, 2 deletions(-) diff --git a/include/stm32.h b/include/stm32.h index 858d2b2..9a01baa 100644 --- a/include/stm32.h +++ b/include/stm32.h @@ -9,7 +9,6 @@ // cortex core ids #define STM32VL_CORE_ID 0x1ba01477 -#define CS32VL_CORE_ID 0x2ba01477 #define STM32F7_CORE_ID 0x5ba02477 // Constant STM32 memory map figures diff --git a/src/flash_loader.c b/src/flash_loader.c index 9f6e3a7..f88a42e 100644 --- a/src/flash_loader.c +++ b/src/flash_loader.c @@ -267,7 +267,6 @@ int stlink_flash_loader_write_to_sram(stlink_t *sl, stm32_addr_t* addr, size_t* loader_code = loader_code_stm32l; loader_size = sizeof(loader_code_stm32l); } else if (sl->core_id == STM32VL_CORE_ID || - sl->core_id == CS32VL_CORE_ID || sl->chip_id == STLINK_CHIPID_STM32_F1_MEDIUM || sl->chip_id == STLINK_CHIPID_STM32_F3 || sl->chip_id == STLINK_CHIPID_STM32_F3_SMALL ||