public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Claudio Leonel <cls@xpnet.com.br>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] Problem with THUMB mode with AT91
Date: Mon, 22 Sep 2003 12:52:00 -0000	[thread overview]
Message-ID: <3F6EC656.2020806@xpnet.com.br> (raw)

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 ?


===================================================================================
arm-elf-gcc -Wp,-MD,vectors.tmp 
-I/home/LinServ/paks/srcpu1//ecos_ram/ecos_ram_install/include 
-I/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current 
-I/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src 
-I/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/tests 
-I. -mcpu=arm7tdmi -mthumb -mno-short-load-words -Wall -Wpointer-arith 
-Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 
-ffunction-sections -fdata-sections -fno-rtti -fno-exceptions 
-fvtable-gc -finit-priority -c -o 
/home/LinServ/paks/srcpu1//ecos_ram/ecos_ram_install/lib/vectors.o 
/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S
/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S: 
Assembler messages:
/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S:427: 
Error: invalid immediate -- `mov r1,#0x0000FF00'
/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S:427: 
Error: invalid immediate -- `mov r1,#(3<<8)'
/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S:457: 
Error: invalid immediate -- `mov r1,#0x0000FF00'
/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S:457: 
Error: invalid immediate -- `mov r1,#(2<<8)'
/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S:462: 
Error: invalid immediate -- `mov r1,#0x0000FF00'
/home/LinServ/paks/ecos/cvs/ecos/packages/hal/arm/arch/current/src/vectors.S:462: 
Error: invalid immediate -- `mov r1,#(1<<8)'
===================================================================================

Regards,
Claudio L. Salvadori
Elaxys Tecnologia



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

             reply	other threads:[~2003-09-22 12:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-22 12:52 Claudio Leonel [this message]
2003-09-23  6:45 ` Eric de Jong
2003-09-23 11:50   ` Andrew Lunn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3F6EC656.2020806@xpnet.com.br \
    --to=cls@xpnet.com.br \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).