This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Problem with THUMB mode with AT91
- From: "Eric de Jong" <list_ericdejong_10 at gmx dot net>
- To: "eCos discussion" <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 23 Sep 2003 08:46:07 +0200
- Subject: Re: [ECOS] Problem with THUMB mode with AT91
- References: <3F6EC656.2020806@xpnet.com.br>
The LED macro is not suited for use in thumb mode. I cannot say when this bug
was introduced, as I did use thumb mode without debugging once. The simplest way
is to comment out the LED calls in vector.S where thumb mode is used (line 427,
457, 462)
Another way is to modify the LED macro, eg change
mov r1,#0x0000FF00
to
mov r1,#0xFF
lsl r1, #8
and in .macro _led y (for my custom EB40A platform)
mov r1,#(\y<<16)
to
mov r1,#(\y)
lsl r1,#16
----- Original Message -----
From: "Claudio Leonel"
To: <ecos-discuss@sources.redhat.com>
Sent: Monday, September 22, 2003 11:52 AM
Subject: [ECOS] Problem with THUMB mode with AT91
Hi all,
I tried to generate a version of eCos for the AT91 EB55 platform
with THUMB MODE. I set the options in eCos configuration:
- Enable Thumb instruction set
- Enable Thumb interworking compiler option
I also included the '-mthumb' option in the Global Compiler Flags,
because setting the previous options was not enough (bug?).
I got an error in the assembly of the vectors.S file (see below),
but the problem seems to be in the 'hal_platform_setup.h' file in the
macros:"_led_init" and "_led"
It seems that it has instructions that are not THUMB compatible.
I am not familiar with ARM Assembly Language, does anyone know
how to fix this ?
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss