From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11970 invoked by alias); 22 Sep 2003 12:52:01 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 11963 invoked from network); 22 Sep 2003 12:52:00 -0000 Received: from unknown (HELO master.elaxys.net) (200.206.185.99) by sources.redhat.com with SMTP; 22 Sep 2003 12:52:00 -0000 Received: from xpnet.com.br ([192.168.1.1]) by master.elaxys.net (8.12.2/8.12.2) with ESMTP id h8MCxgFO001687 for ; Mon, 22 Sep 2003 09:59:42 -0300 Message-ID: <3F6EC656.2020806@xpnet.com.br> Date: Mon, 22 Sep 2003 12:52:00 -0000 From: Claudio Leonel User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ecos-discuss@sources.redhat.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [ECOS] Problem with THUMB mode with AT91 X-SW-Source: 2003-09/txt/msg00385.txt.bz2 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