AnsweredAssumed Answered

Stm32L151xx_KEIL, __asm("wfi"); Inline assembler not permitted when generating Thumb Code.

Question asked by singh.ishmeet on Nov 6, 2013
Latest reply on Nov 6, 2013 by Clive One
Hi All,

I am using the demo codes provided for stm32l151xx processor, from here --> http://www.st.com/web/catalog/mmc/FM141/SC1169/SS1295/LN962/PF251642#

In the keil projct, I am not able to use __asm("wfi");
It gives this error: #1113: Inline assembler not permitted when generating Thumb code.

I also tried 
#pragma arm
__asm("wfi");
#pragma thumb
and adding c compiler options --apcs=/interwork
It gives error: #1114: this feature not supported on target architecture/processor.

Note: on Stm32l151xx_IAR it is working fine.

Anyone have any ideas?

Outcomes