We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
__asm void WFI(void){ MCR p15,0,r0,c7,c0,4; // wait-for-interrupt BX lr; // return from function}
The WFI instruction and the earlier cp15 equivalent have different encodings; your compilation target may not support the WFI instruction.hths.
I am working on an ARM7TDMI - I thought this supported the full Thumb 2 instruction set. Perhaps the compiler does not support Thumb 2...
Hi I need to put one ARM instruction in ARM application written in C.Basically my application looks likevoid 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, 4Since 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
Looks like ARM7 does not support Thumb 2 - is there any equivalent fucntionality on ARM7 or do I require external circuitry to go into a low power mode?
Hi pavan,
You can also try for ARM intrinsics for WFI instructions with respect to your ARM core which you are using. That helps you better in programming.