diff --git a/hw/mcu/stm/stm32_common/src/hal_os_tick.c b/hw/mcu/stm/stm32_common/src/hal_os_tick.c index ab512f0c43..a61e53b133 100644 --- a/hw/mcu/stm/stm32_common/src/hal_os_tick.c +++ b/hw/mcu/stm/stm32_common/src/hal_os_tick.c @@ -28,11 +28,10 @@ #endif #if MYNEWT_VAL(STM32_WFI_FROM_RAM) -__attribute__((section(".text_ram"))) void +__attribute__((section(".text_ram"),noinline)) void stm32_wfi_from_ram(void) { - __ASM volatile ("wfi\n" - "bx lr"); + __ASM volatile ("wfi"); } #endif