FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [August 2006 Threads] freeRTOS compiled by GCCPosted 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 GCCPosted 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 GCCPosted 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 GCCPosted 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 GCCPosted by Nobody/Anonymous on August 23, 2006 You need "-D THUMB_INTERWORK" option in command line.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|