From 0528414a9c672b5858b1be373ad8b03587c372a3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 25 Feb 2021 06:56:40 +1100 Subject: [PATCH] AP_Bootloader: limit the 1M flash check to the F427 this fixes an issue with the DrotekP3Pro which uses the STM32F469 --- Tools/AP_Bootloader/support.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/AP_Bootloader/support.cpp b/Tools/AP_Bootloader/support.cpp index f4e53386ea..878b14cf1e 100644 --- a/Tools/AP_Bootloader/support.cpp +++ b/Tools/AP_Bootloader/support.cpp @@ -270,6 +270,7 @@ uint32_t get_mcu_desc(uint32_t max, uint8_t *revstr) */ bool check_limit_flash_1M(void) { +#ifdef STM32F427xx uint32_t idcode = (*(uint32_t *)DBGMCU_BASE); uint16_t revid = ((idcode & REVID_MASK) >> 16); @@ -278,6 +279,7 @@ bool check_limit_flash_1M(void) return silicon_revs[i].limit_flash_size_1M; } } +#endif return false; }