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

freertos and pic 24 error

Posted by nicola on March 28, 2013
Hi I was able to adapt my processor PIC24 FJ256 with freertos demo supplied code for PIC24 .
Now I Have my own project with TCP/IP STACK with no freertos on it and i'm trying to port freertos on it .
I got this error when i compile the project:

Microchip\mplab c30\bin\bin\..\bin/pic30-coff-ld.exe Error: A heap is required, but has not been specified
obj\tasks.o(.text+0x53a):C:Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationTickHook'
obj\tasks.o(.text+0x53c):C:Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationTickHook'
obj\tasks.o(.text+0x544):C: - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationTickHook'
obj\tasks.o(.text+0x546):C: - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationTickHook'
obj\tasks.o(.text+0x56c):C: - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationStackOverflowHook'
obj\tasks.o(.text+0x56e):C: - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationStackOverflowHook'
obj\tasks.o(.text+0x590):C:B - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationStackOverflowHook'
obj\tasks.o(.text+0x592):C:- Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationStackOverflowHook'
obj\port.o(.text+0x90):C: - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\portable\MPLAB\PIC24_dsPIC\port.c: undefined reference to `portRESTORE_CONTEXT'
obj\port.o(.text+0x92):C: - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\portable\MPLAB\PIC24_dsPIC\port.c: undefined reference to `portRESTORE_CONTEXT'
Link step failed.
It seems heap problem but i added heap_3.c to my project.
Hope you can help Thanks in advance

RE: freertos and pic 24 error

Posted by Richard on March 28, 2013
obj\tasks.o(.text+0x53a):C:Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationTickHook'


If configUSE_APPLICATION_TICK_HOOK is set to 1 you must provide a function called vApplicationTickHook().

obj\tasks.o(.text+0x56e):C: - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\tasks.c: undefined reference to `vApplicationStackOverflowHook'


If configCHECK_FOR_STACK_OVERFLOW is not set to 0 then you must provide a function called vApplicationStackOverflowHook().

obj\port.o(.text+0x90):C: - Demo webserver v1.0 AdhocFreertos\FreeRTOS\Source\portable\MPLAB\PIC24_dsPIC\port.c: undefined reference to `portRESTORE_CONTEXT'


portRESTORE_CONTEXT() is defined in port.c itself. If you look at the source code you will see that there are some #defines that must be defined to get the correct version included. If none are defined then none will be included and you will get this error.

Regards.

RE: freertos and pic 24 error

Posted by nicola on March 28, 2013
hi richard thanks for quick reply,
I had to define the macro for the PIC 24 for portRESTORE_CONTEXT() to get it work. Now It builds
Thanks a lot


[ 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