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.

Compiler/AWR1642: __asm instruction failing with error: Expected a ")"

Part Number: AWR1642

Tool/software: TI C/C++ Compiler

Dear Experts,

could You please help with below issue using "ti-cgt-arm_16.9.1.LTS" on R4F core.

The green part alone is compiled correctly but when the red one is added, it will rise the error "MsgType: error MsgID: 18 Description: expected a ) "

__asm volatile("\t"
"mrc p15, #0, r4, c1, c0, #0\n\t" /* Read SCTLR */
"bic r4, r4, #0x1\n\t"                   /* Disable MPU */
"dsb\n\t"
"mcr p15, #0, r4, c1, c0, #0\n\t"
"isb\n\t"
:
:
: "r4"
);

Could You please let me know, what the problem with :::"r4" could be?

Many thanks and best regards,

Gregor