AP_Bootloader: limit the 1M flash check to the F427

this fixes an issue with the DrotekP3Pro which uses the STM32F469
This commit is contained in:
Andrew Tridgell 2021-02-25 06:56:40 +11:00
parent 44df1dd0ca
commit 0528414a9c

View File

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