Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
IP Products
Processors
Jump...
Cancel
Processors
Classic processors forum
Writing ARM application containing both C code and assemply code
Blogs
Forums
Videos & Files
Help
Jump...
Cancel
New
State
Accepted Answer
+1
person also asked this
people also asked this
Replies
10 replies
Subscribers
2 subscribers
Views
4837 views
Users
0 members are here
Arm7
Address
compiler
program
Interrupt
Related
Writing ARM application containing both C code and assemply code
Offline
Pavan Kumar
over 7 years ago
Note: This was originally posted on 6th September 2007 at
http://forums.arm.com
Hi I need to put one ARM instruction in ARM application written in C.
Basically my application looks like
void main(void)
{
................
................
enable_IRQ();
program_dma(); /* programs DMA with st address, dest addr, xfer length etc and enables DMA*/
/* Here I want to put a ARM instruction(assembly) */
..............
}
Extra information:
After enabling DMA, I want to execute WaitForInterrupt instruction by doing
MCR p15, 0, Rd, c7, c0, 4
Since this is C code I cant directly put that instruction( I guess).
Can you tell me how can I put that MCR instruction in my C code
Top replies
Offline
Simon Craske
over 7 years ago
+1
verified
Note: This was originally posted on 10th September 2007 at http://forums.arm.com Pavan, ARMCC also provides "embedded" assembler which allows simple creation of assembler functions within C source code;...
Parents
0
Offline
Simon Craske
over 7 years ago
Note: This was originally posted on 13th September 2007 at
http://forums.arm.com
The WFI instruction and the earlier cp15 equivalent have different encodings; your compilation target may not support the WFI instruction.
hth
s.
Cancel
Up
0
Down
Reply
Accept answer
Cancel
Reply
0
Offline
Simon Craske
over 7 years ago
Note: This was originally posted on 13th September 2007 at
http://forums.arm.com
The WFI instruction and the earlier cp15 equivalent have different encodings; your compilation target may not support the WFI instruction.
hth
s.
Cancel
Up
0
Down
Reply
Accept answer
Cancel
Children
No data
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
Program Counter, Stack Pointer and Link Register Status During an Interrupt Service in ARM based Processors
+1
3475
views
2
replies
Latest
over 1 year ago
by
Aman007kc
Answered
ARM Assembly how to print numbers instead of their ascii representation of that number
+1
Armv6
Arm Assembly Language (ASM)
5910
views
2
replies
Latest
over 1 year ago
by
Kanan Jarrus
Not Answered
Why there is no translation tables concatenation for stage 1 of VA translation?
0
1499
views
0
replies
Started
over 1 year ago
by
Uzi Shvadron
Answered
Arm Cortex-A8 program flow prediction
+1
Armv7-A
Cache
Out-of-order Execution
Cortex-A
1789
views
1
reply
Latest
over 1 year ago
by
Andy Neil
Suggested Answer
Shifted binary generated by arm-none-eabi-objcopy
0
GCC
Cortex-A
Cortex-M
Baremetal
4959
views
8
replies
Latest
over 1 year ago
by
en2senpai
<
>
View all questions in Classic processors forum