diff --git a/cpu/cortexm_common/include/cpu.h b/cpu/cortexm_common/include/cpu.h index 2d3d7aa701d9b6b3b64d03072b68a3e8dbafcc25..558046fbb0baae671783136f6f5381f551848abf 100644 --- a/cpu/cortexm_common/include/cpu.h +++ b/cpu/cortexm_common/include/cpu.h @@ -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); }