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 PIC24 demo

Posted by paraparvy on June 30, 2016

Dear Sir/Madam,

I am trying to adapt the pic24 FreeRTOS demo to another project (still based on the pic24) I have been able to remove all the demo code successfully except for the crflash.c coroutines.

If i comment out the call to vStartFlashCoRoutines( mainNUMFLASHCOROUTINES ) in main i get the following run time error:

Target halted due to Software Breakpoint in user code

I have tried removing the crflash.c code and setting configUSECOROUTINES to 0 etc...but i then get lots of compile/link errors.

My question is what steps do i need to follow in order to completely remove crflash from the project?

Thank you so much Best wishes


FreeRTOS PIC24 demo

Posted by davedoors on June 30, 2016

but i then get lots of compile/link errors

Can only guess unless you post the errors.


FreeRTOS PIC24 demo

Posted by paraparvy on June 30, 2016

Hi Dave

With configUSECOROUTINES set to 0 in FreeRTOSConfig.h, i get the following errors:

make[1]: Leaving directory 'C:/Para/MicroChip/Explorer16/FreeRTOSExplorer16/FreeRTOS/Demo/PIC24MPLAB/RTOSExplorer16PIC24.X' nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed build/default/production/ext/1472/main.o(.text+0xe6): In function _vApplicationIdleHook': : undefined reference to_vCoRoutineSchedule' build/default/production/ext/1472/main.o(.text+0xe8): In function _vApplicationIdleHook': : undefined reference tovCoRoutineSchedule' build/default/production/ext/1163846883/crflash.o(.text+0x1e): In function .L3': : undefined reference toxQueueCRReceive' build/default/production/ext/1163846883/crflash.o(.text+0x20): In function .L3': : undefined reference toxQueueCRReceive' build/default/production/ext/1163846883/crflash.o(.text+0x32): In function .L4': : undefined reference toxQueueCRReceive' build/default/production/ext/1163846883/crflash.o(.text+0x34): In function .L4': : undefined reference toxQueueCRReceive' build/default/production/ext/1163846883/crflash.o(.text+0x7a): In function .L10': : undefined reference toxQueueCRSend' build/default/production/ext/1163846883/crflash.o(.text+0x7c): In function .L10': : undefined reference toxQueueCRSend' build/default/production/ext/1163846883/crflash.o(.text+0x8e): In function .L11': : undefined reference toxQueueCRSend' build/default/production/ext/1163846883/crflash.o(.text+0x90): In function .L11': : undefined reference toxQueueCRSend' build/default/production/ext/1163846883/crflash.o(.text+0xb2): In function .L15': : undefined reference tovCoRoutineAddToDelayedList' build/default/production/ext/1163846883/crflash.o(.text+0xb4): In function .L15': : undefined reference tovCoRoutineAddToDelayedList' build/default/production/ext/1163846883/crflash.o(.text+0xec): In function .L22': : undefined reference toxCoRoutineCreate' build/default/production/ext/1163846883/crflash.o(.text+0xee): In function .L22': : undefined reference toxCoRoutineCreate' build/default/production/ext/1163846883/crflash.o(.text+0xfc): In function .L21': : undefined reference toxCoRoutineCreate' build/default/production/ext/1163846883/crflash.o(.text+0xfe): In function .L21': : undefined reference toxCoRoutineCreate' make[2]: *** [dist/default/production/RTOSExplorer16_PIC24.X.production.hex] Error 255 make[1]: *** [.build-conf] Error 2 make: *** [.build-impl] Error 2

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

Thanks


FreeRTOS PIC24 demo

Posted by davedoors on June 30, 2016

build/default/production/ext/1472/main.o(.text+0xe6): In function _vApplicationIdleHook': : undefined reference tovCoRoutineSchedule'

This error tells you vCoRoutineSchedule() is called in the idle hook. As you set configUSECOROUTINES to 0 coroutine code will not be built so vCoRoutineSchedule() is undefined. Just remove the call and the error will be fixed.

build/default/production/_ext/1163846883/crflash.o

Same thing. If configUSECOROUTINES is 0 you cant build files that use coroutines, so dont build crflash.c.


FreeRTOS PIC24 demo

Posted by paraparvy on June 30, 2016

sorry, my mistake, i did comment out the vCoRoutineSchedule() earlier, so that error goes away...when you say don't build crflash.c... is it just the case of removing the file from the project?...or do i have to modify the makefile or something?


FreeRTOS PIC24 demo

Posted by paraparvy on June 30, 2016

Hi Dave Ok, ive taken out the crflash file from the project, was getting some other errors after that, so did a clean build and all fine now!

Thanks for all your help...much appreciated.


[ 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