Hi I am using Keil uvision4, and I NEED to have a line of assembly in my c code. So when I try doing something like:
__asm("nop");
I am getting: error: #1113: Inline assembler not permitted when generating Thumb code
So after searching a bit, I figured I have two options one is putting it in #pragma arm
#pragma arm __asm("nop"); #pragma thumb
but now I am getting: error: #1114-D: this feature not supported on target architecture/processor
My other option according to this forum is going to Options for Target->Target->Code Generation and then set it to ARM mode, but under Code Generation I don't have anything that allows me choose ARM mode, I only have three options under there: Use Cross-Module Optimization Use MicroLIB Use Link-Time Code Generation
Any ideas??