Quality RTOS & Embedded Software

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




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) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

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