This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: EB55 target & Thumb instruction set
- From: "Eric de Jong" <list_ericdejong_10 at gmx dot net>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 25 Feb 2004 11:18:59 +0100
- Subject: Re: [ECOS] EB55 target & Thumb instruction set
- References: <702089944.20040225162310@pisem.net>
- Reply-to: "Eric de Jong" <list_ericdejong_10 at gmx dot net>
>> 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.
When compiled as thumb, I got the ecos kernel working perfectly. However this is
without a debug stub (standalone rom-ram application). I did not get the stub working
with thumb. For debugging, I use the arm instruction set.
Eric.
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss