This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: EB55 target & Thumb instruction set


>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]