mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #15446 from mak22223/master
Add fix for STM32G4 hardfault in sleep modepull/15448/head
commit
dba734fb70
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue