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

MPLAB X 2.15 DSPIC33 FREERTOS COMPILATION PROBLEMS

Posted by albanana on September 2, 2014

hello everyone i'm trying to compile freertos with mplab X v2.15. i use a dspic33fj128gp802 chip i have compilation issues i tried both modifying the demo and starting from scratch. none worked

help !!

i have a warning with pvPortMalloc, and linker errors

if you need it i can provide more info, sources, etc... THANK YOU :)

make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf make[1]: Entering directory 'D:/FreeRTOSV8.1.1/FreeRTOS/Demo/dsPICMPLAB/freertosessai1.X' make -f nbproject/Makefile-default.mk dist/default/production/freertosessai1.X.production.hex make[2]: Entering directory 'D:/FreeRTOSV8.1.1/FreeRTOS/Demo/dsPICMPLAB/freertosessai1.X' "C:Program Files (x86)Microchipxc16v1.21binxc16-gcc.exe" ../../../Source/list.c -o build/default/production/ext/449926602/list.o -c -mcpu=33FJ128GP802 -MMD -MF "build/default/production/ext/449926602/list.o.d" -g -omf=elf -O0 -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC24dsPIC" -I"." -msmart-io=1 -Wall -msfr-warn=off "C:Program Files (x86)Microchipxc16v1.21binxc16-gcc.exe" ../../../Source/queue.c -o build/default/production/ext/449926602/queue.o -c -mcpu=33FJ128GP802 -MMD -MF "build/default/production/ext/449926602/queue.o.d" -g -omf=elf -O0 -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC24dsPIC" -I"." -msmart-io=1 -Wall -msfr-warn=off "C:Program Files (x86)Microchipxc16v1.21binxc16-gcc.exe" ../../../Source/tasks.c -o build/default/production/ext/449926602/tasks.o -c -mcpu=33FJ128GP802 -MMD -MF "build/default/production/ext/449926602/tasks.o.d" -g -omf=elf -O0 -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC24dsPIC" -I"." -msmart-io=1 -Wall -msfr-warn=off "C:Program Files (x86)Microchipxc16v1.21binxc16-gcc.exe" ../../../Source/portable/MemMang/heap1.c -o build/default/production/ext/1884096877/heap1.o -c -mcpu=33FJ128GP802 -MMD -MF "build/default/production/ext/1884096877/heap1.o.d" -g -omf=elf -O0 -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC24dsPIC" -I"." -msmart-io=1 -Wall -msfr-warn=off ../../../Source/portable/MemMang/heap1.c: In function 'pvPortMalloc': ../../../Source/portable/MemMang/heap1.c:114:39: warning: cast from pointer to integer of different size "C:Program Files (x86)Microchipxc16v1.21binxc16-gcc.exe" ../../../Source/portable/MPLAB/PIC24dsPIC/port.c -o build/default/production/ext/1343266892/port.o -c -mcpu=33FJ128GP802 -MMD -MF "build/default/production/ext/1343266892/port.o.d" -g -omf=elf -O0 -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC24dsPIC" -I"." -msmart-io=1 -Wall -msfr-warn=off "C:Program Files (x86)Microchipxc16v1.21binxc16-gcc.exe" main.c -o build/default/production/main.o -c -mcpu=33FJ128GP802 -MMD -MF "build/default/production/main.o.d" -g -omf=elf -O0 -I"../../../Source/include" -I"../../../Source/portable/MPLAB/PIC24dsPIC" -I"." -msmart-io=1 -Wall -msfr-warn=off "C:Program Files (x86)Microchipxc16v1.21binxc16-gcc.exe" -o dist/default/production/freertosessai1.X.production.elf build/default/production/ext/449926602/list.o build/default/production/ext/449926602/queue.o build/default/production/ext/449926602/tasks.o build/default/production/ext/1884096877/heap1.o build/default/production/ext/1343266892/port.o build/default/production/main.o -mcpu=33FJ128GP802 -omf=elf -Wl,,--defsym=_MPLABBUILD=1,,--script=p33FJ128GP802.gld,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="dist/default/production/freertos_essai1.X.production.map",--report-mem

Program Memory [Origin = 0x200, Length = 0x155fe]

section address length (PC units) length (bytes) (dec)


.text 0x200 0xaa 0xff (255) .const 0x2aa 0x26 0x39 (57) .text 0x2d0 0x136a 0x1d1f (7455) .dinit 0x163a 0x20 0x30 (48) .text 0x165a 0x10 0x18 (24)

                 Total program memory used (bytes):         0x1e9f  (7839) 5%

Data Memory [Origin = 0x800, Length = 0x4000]

section address alignment gaps total length (dec)


.nbss 0x800 0 0x146a (5226) .ndata 0x1c6a 0 0x6 (6)

                    Total data memory used (bytes):         0x1470  (5232) 31%

Dynamic Memory Usage

region address maximum length (dec)


heap 0 0 (0) stack 0x1c70 0x2b90 (11152)

                    Maximum dynamic memory (bytes):         0x2b90  (11152)

nbproject/Makefile-default.mk:190: recipe for target 'dist/default/production/freertosessai1.X.production.hex' failed make[2]: Leaving directory 'D:/FreeRTOSV8.1.1/FreeRTOS/Demo/dsPICMPLAB/freertosessai1.X' nbproject/Makefile-default.mk:75: recipe for target '.build-conf' failed make[1]: Leaving directory 'D:/FreeRTOSV8.1.1/FreeRTOS/Demo/dsPICMPLAB/freertosessai1.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed build/default/production/ext/449926602/tasks.o(.text+0x852): In function .LSM296': : undefined reference tovApplicationIdleHook' build/default/production/ext/449926602/tasks.o(.text+0xde): In function .LSM26': : undefined reference tovPortYield' build/default/production/ext/449926602/tasks.o(.text+0xe0): In function .LSM26': : undefined reference tovPortYield' build/default/production/ext/449926602/tasks.o(.text+0x162): In function .LSM45': : undefined reference tovPortYield' build/default/production/ext/449926602/tasks.o(.text+0x164): In function .LSM45': : undefined reference tovPortYield' build/default/production/ext/449926602/tasks.o(.text+0x19c): In function .LSM56': : undefined reference tovPortYield' build/default/production/ext/449926602/tasks.o(.text+0x19e): more undefined references to `vPortYield' follow make[2]: *** [dist/default/production/freertosessai1.X.production.hex] Error 255 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2

BUILD FAILED (exit value 2, total time: 7s)


MPLAB X 2.15 DSPIC33 FREERTOS COMPILATION PROBLEMS

Posted by rtel on September 2, 2014

Thank you for reporting this problem. Please try opening FreeRTOS.h, and finding the lines:


#ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION
	#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
#endif

and change the 1 to a 0.

That fixes the problem for me. The default of one will have to move into individual port layers.

Regards.


MPLAB X 2.15 DSPIC33 FREERTOS COMPILATION PROBLEMS

Posted by albanana on September 2, 2014

okay thanks a lot. actually the problem was that i forgot 1> to include "portasm_dspic.s" in the project sources 2> to implement "vApplicationIdleHook".

i got issues with configUSEPORTOPTIMISEDTASKSELECTION too. i changed it to 0 and got no more errors

i have this warning : ../../../Source/portable/MemMang/heap1.c: In function 'pvPortMalloc': ../../../Source/portable/MemMang/heap1.c:114:39: warning: cast from pointer to integer of different size

should i ignore it ? is it possible to fix it ?

THANKS :) alban


MPLAB X 2.15 DSPIC33 FREERTOS COMPILATION PROBLEMS

Posted by rtel on September 2, 2014

Yes that can be ignored.

Regards.


[ 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