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

PIC24 Demo

Posted by auntybellum on October 27, 2016

Hello, Just looking for a bit of help. I have got FreeRTOS working fine with my PIC32MX systems and wanted to try it out on my PIC24H but I am struggling to get a compile under MPLAB X. I have made lots of attempts but get lots of red ink at compile time. I have imported the demo to MPLAB X and have found a PIC24FJ chip to experiment on. The demo generates all the right files but I think I have an include or header problem although I have tried everything I can think of. This is just a snippet of the red ink at build/compile. I am using the XC16 Microchip compiler.

Any ideas gratefully received - Thank You!

oduction/ext/1472/main.o build/default/production/ext/809743516/ParTest.o build/default/production/ext/821501661/serial.o build/default/production/ext/1472/lcd.o -mcpu=24FJ128GA010 -omf=elf -DXPRJdefault=default -no-legacy-libc -Wl,,--defsym=__MPLABBUILD=1,,--script="../p24FJ128GA010.gld",--heap=0,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--library-path="..",--library-path=".",--library-path="../../../Source/include",--library-path="../../../Source/portable/MPLAB/PIC24dsPIC",--library-path="../../../Source",--no-force-link,--smart-io,--memorysummary,dist/default/production/memoryfile.xml nbproject/Makefile-default.mk:367: recipe for target 'dist/default/production/RTOSDemoPIC24.X.production.hex' failed make[2]: Leaving directory '/home/pic/MPLABXProjects/FreeRTOSv9.0.0/FreeRTOS/Demo/PIC24MPLAB/RTOSDemoPIC24.X' nbproject/Makefile-default.mk:84: recipe for target '.build-conf' failed make[1]: Leaving directory '/home/pic/MPLABXProjects/FreeRTOSv9.0.0/FreeRTOS/Demo/PIC24MPLAB/RTOSDemoPIC24.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed build/default/production/ext/449926602/tasks.o(.text+0x1d2): In function .L0': : undefined reference to_pvPortMalloc' build/default/production/ext/449926602/tasks.o(.text+0x1d4): In function .L0': : undefined reference topvPortMalloc' build/default/production/ext/449926602/tasks.o(.text+0x1e0): In function .L0': : undefined reference topvPortMalloc' build/default/production/ext/449926602/tasks.o(.text+0x1d2): In function .L0': : undefined reference topvPortMalloc' build/default/production/ext/449926602/tasks.o(.text+0x1d4): In function .L0': : undefined reference to_pvPortMalloc'


PIC24 Demo

Posted by rtel on October 27, 2016

pvPortMalloc() is implemented in a heap_x.c file (http://www.freertos.org/a00111.html). You need to include one of the heap files in your build.


PIC24 Demo

Posted by auntybellum on October 27, 2016

Well done! I found that and fixed it. Very many thanks indeed.


[ 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