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


New Project with 18F452

Posted by Zafer Dedeoglu on June 29, 2009
I'm a beginner for RTOS concept. I was buy two book which was written by Mr.Richard Barry and i read it. Now i want to start with RTOS Microchip 18F452.
1.i make a new project at MPLAB with project wizard.
2.i am copy very simple code at MCC18\example\getting_started\program1\main.c to my directory and include it.
3.i am copy the files which they are founded at FreeRTOSV5.3.0\Source directory. These files are croutine.c, list.c, list.o, queue.c, queue.o, task.c, task.o. (Question 1: the object files are required, or C files are sufficent?)
4.i am copy the files which they are founded at FreeRTOSV5.3.0\Source\include directory. These files are croutine.h, FreeRTOS.h, list.h, portable.h, projdefs.h, queue.h, semphr.h, StackMacros.h, task.h. (Question 2: All of these files are necessary? Or when am i use this files, when not use?)
5.i am copy the files which they are founded at FreeRTOSV5.3.0\Source\portable\MPLAB\PIC18F directory. These files are port.c, port.o, portmacro.h.(Question 2: Object and header files are necessary?)
6.i am copy FreeRTOSCnfig.h file from FreeRTOSV5.3.0\Demo\PIC18_MPLAB directory.
7.Compile my project. And this is te error.

"Make: The target "D:\Belgelerim\PIC Program\GTP\try\main.o" is up to date.
Make: The target "D:\Belgelerim\PIC Program\GTP\try\list.o" is up to date.
Make: The target "D:\Belgelerim\PIC Program\GTP\try\port.o" is up to date.
Make: The target "D:\Belgelerim\PIC Program\GTP\try\queue.o" is up to date.
Make: The target "D:\Belgelerim\PIC Program\GTP\try\tasks.o" is up to date.
Make: The target "D:\Belgelerim\PIC Program\GTP\try\croutine.o" is up to date.
Make: The target "D:\Belgelerim\PIC Program\GTP\try\try.cof" is out of date.
Executing: "C:\Program Files\Microchip\MCC18\bin\mplink.exe" /p18F452 /l"C:\Program Files\Microchip\MCC18\lib" "main.o" "list.o" "port.o" "queue.o" "tasks.o" "croutine.o" /u_CRUNTIME /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"try.cof" /M"try.map" /W
MPLINK 4.31, Linker
Copyright (c) 2009 Microchip Technology Inc.
Error - could not find definition of symbol 'vSerialRxISR' in file './port.o'.
Errors : 1"

What is the wrong? At FreeRTOS book, only port.c, list.c and queue.c, task.c files are enough. Could you please explain me! I read the FreeRTOS book many times. But i don't make a simple project. I am beginner. I'm sorry.
Best regards,

RE: New Project with 18F452

Posted by Juan_Pablo Garcia_Martinez on June 29, 2009
You have copied some files from a project and you did not take in account some others were some funtions are defined in.
If you do not want to play with serial port you can include next code in your main.c file, for example, to remove the error message:

#if (config_USE_SERIAL_PORT== 0)
void vSerialRxISR(void){}
void vSerialTxISR(void){}

Then in FreeRTOSConfig.h file you have to include next line:

#define config_USE_SERIAL_PORT0

[ 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