Question
Stm32L151xx_KEIL, __asm(''wfi''); Inline assembler not permitted when generating Thumb Code.
Posted on November 06, 2013 at 04:51
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: &sharp1113: Inline assembler not permitted when generating Thumb code.I also tried &sharppragma arm__asm(''wfi'');&sharppragma thumband adding c compiler options --apcs=/interworkIt gives error: &sharp1114: this feature not supported on target architecture/processor.Note: on Stm32l151xx_IAR it is working fine.Anyone have any ideas? #stm32 #dma #discovery #stm32l