Hi,
I am trying to enable DISDEFWBUF in the ACTLR Register located at 0xE000E008 in Cortex M4.
I have the following code at startup:
asm(
" ldr r0, =0xE000E008 \n" //Load the ACTLR register address
" ldr r1,[r0] \n" //Read the ACTLR register
" orr r1,r1,#0x02 \n" //Set the bit in position 2 DISDEFWBUF.
" str r1,[r0] \n" //Store the modified value back.
);
I get the following error:
ERROR! at line 1382: [E0200] Bad term in expression
ldr r0, =0xE000E008
ERROR! at line 1382: [E0001] Illegal symbol
ldr r0, =0xE000E008
ERROR! at line 1382: [E0003] Unexpected trailing operand(s)
ldr r0, =0xE000E008
How do I fix this? I am using CCSv6 TI ARM compiler.
Thanks,
Gautam.