mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-21 23:33:57 -04:00
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:
parent
44df1dd0ca
commit
0528414a9c
@ -270,6 +270,7 @@ uint32_t get_mcu_desc(uint32_t max, uint8_t *revstr)
|
|||||||
*/
|
*/
|
||||||
bool check_limit_flash_1M(void)
|
bool check_limit_flash_1M(void)
|
||||||
{
|
{
|
||||||
|
#ifdef STM32F427xx
|
||||||
uint32_t idcode = (*(uint32_t *)DBGMCU_BASE);
|
uint32_t idcode = (*(uint32_t *)DBGMCU_BASE);
|
||||||
uint16_t revid = ((idcode & REVID_MASK) >> 16);
|
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;
|
return silicon_revs[i].limit_flash_size_1M;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user