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,