HAL_ChibiOS: Fix stm32l4+ flash issue

stm32l4+ flash reset register has been reset properly
This commit is contained in:
thu5cob 2023-10-05 21:31:46 +05:30 committed by Andrew Tridgell
parent de7dd9d692
commit 49d7d0b1c4

View File

@ -235,6 +235,8 @@ static void stm32_flash_clear_errors(void)
#if STM32_FLASH_NBANKS > 1
FLASH->CCR2 = ~0;
#endif
#elif defined (STM32L4PLUS)
FLASH->SR = 0x0000C3FBU;
#else
FLASH->SR = 0xF3;
#endif