Error: selected processor does not support ARM mode `wfi'

25,728

You might miss some vital compiler options for your STM32F10x - which is a Cortex M3:

-mcpu=cortex-m3 -mthumb -mno-thumb-interwork -mfpu=vfp -msoft-float -mfix-cortex-m3-ldrd
Share:
25,728
andre
Author by

andre

11.71875 is the a hardware manufacturers dozen.

Updated on December 04, 2020

Comments

  • andre
    andre over 3 years

    I'm getting the following errors while trying to compile an ARM embedded C program (I'm using YAGARTO as my cross compiler). I'm trying to work out what this error means and what are the steps to correct it. From the research I've done so far, the issue it seems to be wfi, and wfe are not ASM instruction. How could I fix this?

    \cc9e5oJe.s: Assembler messages:
    \cc9e5oJe.s:404: Error: selected processor does not support ARM mode `wfi'
    \cc9e5oJe.s:414: Error: selected processor does not support ARM mode `wfe'
    \cc9e5oJe.s:477: Error: selected processor does not support ARM mode `wfi'
    make: *** [STM32F10x_StdPeriph_Driver/src/stm32f10x_pwr.o] Error 1