This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3230SF: Getting compiler error on compiling assembler code: unknown directives

Part Number: CC3230SF


I am using simplelink sdk version 7 and compiler 1240.  

I am working on application code where the application copies the another application to RAM and executes it. 

__asm(" .sect \".text:Run\"\n"
" .clink\n"
" .thumbfunc Run\n"
" .thumb\n"
"Run:\n"
" ldr sp,[r0]\n"
" add r0,r0,#4\n"
" ldr r1,[r0]\n"
" bx r1");

I am getting error: 

<inline asm>:2:5: error: unknown directive
.clink
^
<inline asm>:3:5: error: unknown directive
.thumbfunc Run

Please guide.

thanks,