[ECOS] EB55 target & Thumb instruction set

Jonathan Larmour jifl@eCosCentric.com
Wed Mar 3 17:33:00 GMT 2004


Eric de Jong wrote:
>>>When I tried to build eCos with AT91EB55 target template and HAL's option
>>>"Enable Thumb instruction set" I've got the build error:
>>>arm-elf-gcc  ...
> 
> /ecos-c/cygwin/opt/ecos/cvs_rep/packages/hal/arm/arch/current/src/vectors.S
> 
> The led macro in hal_platform_setup.h uses a mov instruction with an 8bit  constant.
> This is supported in the arm instruction set, but not in the thumb instruction set.
> Replace the 'mov r1,#' instructions with 'ldr r1, =' in the led macro code.

I haven't thought about this much, but this doesn't sound right. the 
parameter is a 16-bit half-word, so can't possibly fit into a 16-bit 
instruction! Sure this change will let it compile, but the led macros won't 
actually work. Or is that all you meant?

Jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
 >>>>> Visit us in booth 2527 at the Embedded Systems Conference 2004 <<<<<
March 30 - April 1, San Francisco http://www.esconline.com/electronicaUSA/
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list