Skip to content
Snippets Groups Projects
Commit ac932838 authored by Francisco Acosta's avatar Francisco Acosta
Browse files

cpu/cortexm_common: add NOP after WFI to avoid hardfault on stm32l152

parent 368818aa
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,10 @@ static inline void cortexm_sleep(int deep)
unsigned state = irq_disable();
__DSB();
__WFI();
#if defined(CPU_MODEL_STM32L152RE)
/* STM32L152RE crashes without this __NOP(). See #8518. */
__NOP();
#endif
irq_restore(state);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment