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: Richard Earnshaw <rearnsha@xxxxxxx>
- Date: Tue, 14 Jun 2011 10:25:53 +0100
On 13/06/11 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'
>
> This addressing mode is listed as supported in my reference documents
> for the LPC1768 processor.
> Any idea why the compiler doesn't think it is supported?
>
> Thanks,
> -Chris
>
>
Try adding
.syntax unified
at the top of your assembly file.
R.