Quality RTOS & Embedded Software

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


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


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

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

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