Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


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 ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

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

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

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner