nobody wrote on Thursday, 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:
NO_OPT=–nogcse --noinvariant --noinduction --nojtbound --noloopreverse --nolabelopt --nooverlay --peep-asm
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
# 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?