Skip to content

Commit

Permalink
HAL_ChibiOS: Fix stm32l4+ flash issue
Browse files Browse the repository at this point in the history
stm32l4+ flash reset register has been reset properly
  • Loading branch information
thu5cob authored and tridge committed Oct 6, 2023
1 parent de7dd9d commit 49d7d0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_HAL_ChibiOS/hwdef/common/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49d7d0b

Please sign in to comment.