Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

freeRTOS compiled by GCC

Posted by Nobody/Anonymous on August 22, 2006
I used the port for AT91SAM7 GCC. I have problem to write correct makefile because the compiler returns errors when I want to compile tasks.c in THUMB mode!
In ARM mode it is working (after 0x1f to 0x3f CPSR changing in firsttask constant (i can't remember the name now, sorry)) but prvIdleTask does not start!!! Therefore I have to create my own idle task now...

any ideas?

Janusz

RE: freeRTOS compiled by GCC

Posted by Nobody/Anonymous on August 22, 2006
Important: it is not compiler error, linker only... I guess it is a special option needed.

Janusz

RE: freeRTOS compiled by GCC

Posted by Nobody/Anonymous on August 23, 2006
sorry, my mistake in post before - it is compiler error, not linker..., please look:
Compiling C: Source/tasks.c
arm-elf-gcc -c -mthumb -mcpu=arm7tdmi -mthumb-interwork -I. -gdwarf-2 -DROM_RUN
-DVECTORS_IN_RAM -DSAM7_GCC -Os -Wall -Wcast-align -Wimplicit -Wpointer-arith
-Wswitch -Wredundant-decls -Wreturn-type -Wshadow -Wunused -Wa,-adhlns=Source/ta
sks.lst -I./Source/include -I./lwip-1.1.0/src/include -I./lwip-1.1.0/contrib/po
rt/FreeRTOS/AT91SAM7X -I./lwip-1.1.0/src/include/ipv4 -I./lwip-1.1.0/src/netif/p
pp -I. -I./lwip-1.1.0/src/include -I./lwip-1.1.0/contrib/port/FreeRTOS/AT91SAM7X
-I./Source/include -I./Source/portable/GCC/ARM7_AT91SAM7S -I./lwip-1.1.0/src/in
clude/ipv4 -I./lwip-1.1.0/src/netif/ppp -I./EMAC -MD -MP -MF .dep/tasks.o.d -Wn
ested-externs -w -std=gnu99 Source/tasks.c -o Source/tasks.o
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s: Assembler messages:
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:1717: Error: selected processor does
not support `stmdb SP!,{R0}'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:1718: Error: selected processor does
not support `mrs R0,CPSR'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:1719: Error: unshifted register requ
ired -- `orr R0,R0,#0xC0'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:1720: Error: selected processor does
not support `msr CPSR,R0'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:1721: Error: lo register required --
`ldmia SP!,{R0}'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:2172: Error: selected processor does
not support `stmdb SP!,{R0}'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:2173: Error: selected processor does
not support `mrs R0,CPSR'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:2174: Error: unshifted register requ
ired -- `orr R0,R0,#0xC0'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:2175: Error: selected processor does
not support `msr CPSR,R0'
C:\DOCUME~1\Janusz\USTAWI~1\Temp/cc2Naaaa.s:2176: Error: lo register required --
`ldmia SP!,{R0}'
make: *** [Source/tasks.o] Error 1

RE: freeRTOS compiled by GCC

Posted by Nobody/Anonymous on August 23, 2006
I have found solution :D

Makefile was not incoporate THUMB_INTERWORK flag:
CDEFS += -DSAM7_GCC
CDEFS += -DTHUMB_INTERWORK

i'm closing the thread.
Janusz

RE: freeRTOS compiled by GCC

Posted by Nobody/Anonymous on August 23, 2006
You need "-D THUMB_INTERWORK" option in command line.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists