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] [February 2006 Threads] SDCC makefile problemPosted by Nobody/Anonymous on February 23, 2006 I am trying to use the "FREERTOS" of yours in my project. I am want to use it on the Analog Devices ADUC845 microcontroller which has 2k of RAM built in and 62k of flash memory. I am using SDCC as my compiler. The problem that I am facing right now is that SDCC compiles the code written by me but the linker shows warnings of Undefined GLobal variables. now these variables are the functions used in the RTOS. Say for example: we use TaskCreate(......) and the ASLINK shows warning as _TaskCreate as undefined Global Variable. and another thing to be noticed is that code and the DEMO files given by you compile with no error or any warning as such.Whenever I try to modify the makefile for my application these warnings are displayed. MY Makefile looks as follows:
CC=sdcc NO_OPT=--nogcse --noinvariant --noinduction --nojtbound --noloopreverse --nolabelopt --nooverlay --peep-asm DEBUG=--debug
CFLAGS=--model-large -I. -I../Common/include -I../include -I../../Source/include \ -DSDCC_CYGNAL $(DEBUG) --less-pedantic --xram-size 2303 --stack-auto \ --no-peep --int-long-reent --float-reent
#DEMO_DIR = ../Common SOURCE_DIR = ../../Source PORT_DIR = ../../Source/portable/SDCC/Cygnal
SRC = \ keby/keyb.c \ #ParTest/ParTest.c \ #serial/serial.c \ #$(DEMO_DIR)/Full/flash.c \ #$(DEMO_DIR)/Full/print.c \ #$(DEMO_DIR)/Minimal/integer.c \ #$(DEMO_DIR)/Minimal/PollQ.c \ #$(DEMO_DIR)/Minimal/comtest.c \ #$(DEMO_DIR)/Full/semtest.c \ $(SOURCE_DIR)/tasks.c \ $(SOURCE_DIR)/queue.c \ $(SOURCE_DIR)/list.c \ $(SOURCE_DIR)/portable/MemMang/heap_1.c \ $(PORT_DIR)/port.c
# Define all object files. OBJ = $(SRC:.c=.rel)
main : main.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(OBJ) $(CC) $(CFLAGS) main.c $(OBJ)
%.rel : %.c Makefile ../../Source/portable/SDCC/Cygnal/portmacro.h $(CC) -c $(CFLAGS) $<
//=================================================================== here keyb.c is my own code and Main.c is also written by me in same folders as shown in makefile.My code does compile without any warnings if i compile it with your DEMO files when uncommented in the Makefile.So what do you think is the solution to this?
RE: SDCC makefile problemPosted by Richard on February 23, 2006 Can you see the tasks.c file being compiled? Are the intermediate files generated for tasks.c? If tasks.c is not being compiled try rearranging the list of files in the makefile so that the commented out files are at the end of the list.
SRC = \ keby/keyb.c \ $(SOURCE_DIR)/tasks.c \ $(SOURCE_DIR)/queue.c \ $(SOURCE_DIR)/list.c \ $(SOURCE_DIR)/portable/MemMang/heap_1.c \ $(PORT_DIR)/port.c #ParTest/ParTest.c \ #serial/serial.c \ #$(DEMO_DIR)/Full/flash.c \ #$(DEMO_DIR)/Full/print.c \ #$(DEMO_DIR)/Minimal/integer.c \ #$(DEMO_DIR)/Minimal/PollQ.c \ #$(DEMO_DIR)/Minimal/comtest.c \ #$(DEMO_DIR)/Full/semtest.c \
2K of RAM is very little.
Regards.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|