Add workaround for F429 hardfault

pull/12662/head
Marcelo Salazar 2020-03-27 11:58:46 +00:00 committed by GitHub
parent 40672c5e0f
commit 5aa66b5c9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -391,7 +391,10 @@ void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry)
if(SLEEPEntry == PWR_SLEEPENTRY_WFI)
{
/* Request Wait For Interrupt */
__NOP();
__WFI();
__NOP(); // Workaround for STM32F4 errata
__NOP(); // see chapter 2.1.3 - Debugging Sleep/Stop mode with WFE/WFI entry
__NOP(); // https://www.st.com/resource/en/errata_sheet/dm00037591-stm32f405-407xx-and-stm32f415-417xx-device-limitations-stmicroelectronics.pdf
}
else
{