Browse Source

AP_Bootloader: limit the 1M flash check to the F427

this fixes an issue with the DrotekP3Pro which uses the STM32F469
c415-sdk
Andrew Tridgell 4 years ago
parent
commit
0528414a9c
  1. 2
      Tools/AP_Bootloader/support.cpp

2
Tools/AP_Bootloader/support.cpp

@ -270,6 +270,7 @@ uint32_t get_mcu_desc(uint32_t max, uint8_t *revstr) @@ -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) @@ -278,6 +279,7 @@ bool check_limit_flash_1M(void)
return silicon_revs[i].limit_flash_size_1M;
}
}
#endif
return false;
}

Loading…
Cancel
Save