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

SDCC makefile problem

Posted 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 problem

Posted 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.


[ 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