Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
using inline assembly on Cortex-M3 using RVCT 4.0
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
5097 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
using inline assembly on Cortex-M3 using RVCT 4.0
Abhinav Varma
over 12 years ago
Note: This was originally posted on 20th August 2010 at
http://forums.arm.com
Hey all,
While migrating from arm-gcc to armcc, I am facing the following problem - There is an inline code which is giving error.
"abc.c", line 162: Error: #1113: Inline assembler not permitted when generating Thumb code
__asm__ __volatile__("wfi");
^
What should be done to get the code running.
I am using Cortex M3 processor and RVDS 4.0.
Thanks and Regards
Abhinav Varma
Parents
Simon Craske
over 12 years ago
Note: This was originally posted on 20th August 2010 at
http://forums.arm.com
For "WFI" you don't need to use assembly. RVCT supports WFI via a built-in intrinsic called "__wfi()".
Just use "__wfi()" as if it were a function, e.g.
[font="Courier New"] while(....) __wfi();[/font]
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Reply
Simon Craske
over 12 years ago
Note: This was originally posted on 20th August 2010 at
http://forums.arm.com
For "WFI" you don't need to use assembly. RVCT supports WFI via a built-in intrinsic called "__wfi()".
Just use "__wfi()" as if it were a function, e.g.
[font="Courier New"] while(....) __wfi();[/font]
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Children
No data