Skip to content

Commit

Permalink
Add workaround for G474 hardfault
Browse files Browse the repository at this point in the history
  • Loading branch information
mak22223 committed Aug 14, 2023
1 parent 13f43cc commit 5558225
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@ void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry)
{
/* Request Wait For Interrupt */
__WFI();
__ISB(); // Workaround for STM32G4 errata
// see chapter 2.2.8 - Wrong instruction fetches from flash memory upon wakeup from Sleep or Stop mode when debug in low-power mode is enabled
// https://www.st.com/resource/en/errata_sheet/es0430-stm32g471xx473xx474xx483xx484xx-device-errata-stmicroelectronics.pdf
}
else
{
Expand Down

0 comments on commit 5558225

Please sign in to comment.