mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
HAL_ChibiOS: clear EOP bit at end of F4 programming
This commit is contained in:
parent
5a84e988a5
commit
0accc9f897
@ -853,6 +853,8 @@ static bool stm32_flash_write_g4(uint32_t addr, const void *buf, uint32_t count)
|
||||
|
||||
stm32_flash_wait_idle();
|
||||
|
||||
FLASH->SR |= FLASH_SR_EOP;
|
||||
|
||||
FLASH->CR = 0;
|
||||
|
||||
if (getreg32(addr+0) != b[0] ||
|
||||
|
Loading…
Reference in New Issue
Block a user