HAL_ChibiOS: clear EOP bit at end of F4 programming

This commit is contained in:
Andrew Tridgell 2023-07-09 18:02:02 +10:00
parent 5a84e988a5
commit 0accc9f897

View File

@ -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] ||