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

Assembly code in *.c file of kinetic cortex M4

Hi,

I am working on Freescale ARM Cortex M4 device MK60N512VMD100 using IDE Keil uVision v4.50.0.0

I want to insert some assembly code in c file.

This is what I did

#pragma ARM

get this error

main.c(91): error: #1114-D: this feature not supported on target architecture/processor

try

__asm { }

main.c(91): error: #1113: Inline assembler not permitted when generating Thumb code

how can I insert ARM or Thumb assembly code in C file

Please advice

Thanks and Best Regards
Waseem