mirror of https://github.com/ARMmbed/mbed-os.git
Add workaround for F429 hardfault
parent
40672c5e0f
commit
5aa66b5c9a
|
@ -391,7 +391,10 @@ void HAL_PWR_EnterSLEEPMode(uint32_t Regulator, uint8_t SLEEPEntry)
|
||||||
if(SLEEPEntry == PWR_SLEEPENTRY_WFI)
|
if(SLEEPEntry == PWR_SLEEPENTRY_WFI)
|
||||||
{
|
{
|
||||||
/* Request Wait For Interrupt */
|
/* 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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue