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

Build Failed with PIC32

Posted by Grant Brown on October 27, 2008
Hi,

Could anyone explain why my project failed to build. The compiler error message is listed below.

Particularly things such as "undefined reference to `vPortStartFirstTask'"

Nothing regarding the compiler has changed.

I am using the PIC32 compiler from MPLab

This project is a copy of the PIC32 demo project that comes with FreeRTOS

I can upload the project if someone tells me where.


Many thanks
Grant Brown



----------------------------------------------------------------------
Debug build of project `C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\RTOSDemo.mcp' started.
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_PIC32MXSK=1'.
Mon Oct 27 16:04:44 2008
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\main.o".
Clean: Deleted file "C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\port.o".
Clean: Deleted file "C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\list.o".
Clean: Deleted file "C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\queue.o".
Clean: Deleted file "C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\tasks.o".
Clean: Deleted file "C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\heap_2.o".
Clean: Deleted file "C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\init_PIC32MX360F512L.o".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX360F512L -x c -c "main.c" -o"main.o" -MMD -MF"main.d" -I"." -I"." -I"..\common\include" -I"..\..\source\portable\mplab\pic32mx" -I"..\..\source\include" -D__DEBUG -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer
main.c: In function `main':
main.c:90: warning: implicit declaration of function `VisualInitialization'
Executing: "C:\Program Files\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX360F512L -x c -c "..\..\Source\portable\MPLAB\PIC32MX\port.c" -o"port.o" -MMD -MF"port.d" -I"." -I"." -I"..\common\include" -I"..\..\source\portable\mplab\pic32mx" -I"..\..\source\include" -D__DEBUG -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer
Executing: "C:\Program Files\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX360F512L -x c -c "..\..\Source\list.c" -o"list.o" -MMD -MF"list.d" -I"." -I"." -I"..\common\include" -I"..\..\source\portable\mplab\pic32mx" -I"..\..\source\include" -D__DEBUG -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer
Executing: "C:\Program Files\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX360F512L -x c -c "..\..\Source\queue.c" -o"queue.o" -MMD -MF"queue.d" -I"." -I"." -I"..\common\include" -I"..\..\source\portable\mplab\pic32mx" -I"..\..\source\include" -D__DEBUG -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer
Executing: "C:\Program Files\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX360F512L -x c -c "..\..\Source\tasks.c" -o"tasks.o" -MMD -MF"tasks.d" -I"." -I"." -I"..\common\include" -I"..\..\source\portable\mplab\pic32mx" -I"..\..\source\include" -D__DEBUG -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer
Executing: "C:\Program Files\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX360F512L -x c -c "..\..\Source\portable\MemMang\heap_2.c" -o"heap_2.o" -MMD -MF"heap_2.d" -I"." -I"." -I"..\common\include" -I"..\..\source\portable\mplab\pic32mx" -I"..\..\source\include" -D__DEBUG -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer
Executing: "C:\Program Files\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX360F512L -x c -c "Generated Files\VDIInit\init_PIC32MX360F512L.c" -o"init_PIC32MX360F512L.o" -MMD -MF"init_PIC32MX360F512L.d" -I"." -I"." -I"..\common\include" -I"..\..\source\portable\mplab\pic32mx" -I"..\..\source\include" -D__DEBUG -g -DMPLAB_PIC32MX_PORT -Wall -fomit-frame-pointer
Executing: "C:\Program Files\Microchip\MPLAB C32\bin\pic32-gcc.exe" -mprocessor=32MX360F512L "main.o" "port.o" "list.o" "queue.o" "tasks.o" "heap_2.o" "init_PIC32MX360F512L.o" -o"RTOSDemo.elf" -O3 -Wl,--defsym=__MPLAB_BUILD=1,--defsym=__MPLAB_DEBUG=1,--defsym=__MPLAB_DEBUGGER_PIC32MXSK=1,--defsym=_min_heap_size=0,--defsym=_min_heap_size=0,-Map="RTOSDemo.map"
port.o: In function `xPortStartScheduler':

..\..\Source\portable\MPLAB\PIC32MX/port.c:163: undefined reference to `vPortStartFirstTask'
..\..\Source\portable\MPLAB\PIC32MX/port.c:163: relocation truncated to fit: R_MIPS_26 against `vPortStartFirstTask'
port.o: In function `__vector_dispatch_1':
..\..\Source\portable\MPLAB\PIC32MX\port.c:(.vector_1+0x0): undefined reference to `vPortYieldISR'
..\..\Source\portable\MPLAB\PIC32MX\port.c:(.vector_1+0x0): relocation truncated to fit: R_MIPS_26 against `vPortYieldISR'
port.o: In function `__vector_dispatch_4':
..\..\Source\portable\MPLAB\PIC32MX\port.c:(.vector_4+0x0): undefined reference to `vT1InterruptHandler'
..\..\Source\portable\MPLAB\PIC32MX\port.c:(.vector_4+0x0): relocation truncated to fit: R_MIPS_26 against `vT1InterruptHandler'
Link step failed.
----------------------------------------------------------------------
Debug build of project `C:\Program Files\Microchip\FreeRTOS\Demo\PIC32MX_MPLAB\RTOSDemo.mcp' failed.
Preprocessor symbol `__DEBUG' is defined.
Target debug platform is `__MPLAB_DEBUGGER_PIC32MXSK=1'.
Mon Oct 27 16:04:50 2008
----------------------------------------------------------------------
BUILD FAILED

RE: Build Failed with PIC32

Posted by Richard on October 27, 2008
The functions it cannot find are all defined in FreeRTOS\Source\portable\MPLAB\PIC32MX\port_asm.S - so I would guess this file is not included in your project.

Regards.

RE: Build Failed with PIC32

Posted by Richard on October 27, 2008
I have just noticed that there is a new version of MPLAB available. Maybe this is why there have been a couple of PIC32 build problems in the last couple of days. I'm just downloading it now to see what effects it has on my build.

RE: Build Failed with PIC32

Posted by Richard on October 27, 2008
I just tried with MPLAB V8.15 and a clean install of FreeRTOS.org V5.1.0 - all built with no problems.

MPLAB now contains a FreeRTOS viewer.

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