stm32f4 __wfi

Christian Mauderer christian.mauderer at
Tue Apr 23 14:28:56 UTC 2019

Am 22.04.19 um 09:47 schrieb Jython:
> HI, ALL!
> wfi
> how can i call the arm __wfi?
> _______________________________________________
> users mailing list
> users at

Hello Jython,

WFI is an assembler instruction. The Keil wrapper isn't available in
gcc. I know of no direct replacement. Most likely you need a gcc inline
assembly for that.

May I ask why you would need "wfi"? If you use a operating system, the
system typically handles such low level stuff for you. The only
application that springs to mind for that instruction is overwriting the
idle loop to save energy.

Best regards


embedded brains GmbH
Herr Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
email: christian.mauderer at
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

More information about the users mailing list