Re: [arm-gnu] Assembler error for cortex-m3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] Assembler error for cortex-m3
- To: Chris Elliott <chris@xxxxxxxxxxxxxxxxxxxx>
- Subject: Re: [arm-gnu] Assembler error for cortex-m3
- From: Spencer Oliver <spen@xxxxxxxxxxxxxxx>
- Date: Mon, 13 Jun 2011 20:48:55 +0100
On 13/06/2011 20:31, Chris Elliott wrote:
I am compiling some assembler code for cortex-m3 and get an error.
The same error occurs with either gcc or as.
arm-2011.03/bin/arm-none-eabi-gcc -mcpu=cortex-m3 -march=armv7-m -c -o
test.o startup_LPC17xx.s
startup_LPC17xx.s:138: Error: Thumb does not support this addressing
mode -- `strb R2,[R0],#1'
try adding -mthumb to the compiler cmd line.
Also if you use mcpu then this should set the arch anyway.
Cheers
Spen