[ECOS] EB55 target & Thumb instruction set
Eric de Jong
list_ericdejong_10@gmx.net
Wed Feb 25 11:19:00 GMT 2004
>> 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
More information about the Ecos-discuss
mailing list