johnbaker70 wrote on Monday, July 13, 2009:
I was able to compile, link and run the dsPIC demo on my eval board but cannot get the bare project to compile. Getting error:
In function `prvIdleTask’:
C:\FreeRTOS_5.3.1\FreeRTOS\source\tasks.c:1789: undefined reference to `vApplicationIdleHook’
My main code is:
/* Standard includes. */
//#include <stdio.h>
/* Scheduler includes. */
#include "FreeRTOS.h"
#include "task.h"
//#include "queue.h"
//#include "croutine.h"
/*
* Setup the processor ready for the demo.
*/
static void prvSetupHardware( void );
int main( void )
{
/* Configure any hardware required for this demo. */
prvSetupHardware();
/* Create the tasks. */
//xTaskCreate( vCheckTask, ( signed portCHAR * ) "Check", mainCHECK_TAKS_STACK_SIZE, NULL, mainCHECK_TASK_PRIORITY, NULL );
/* Finally start the scheduler. */
vTaskStartScheduler();
/* Will only reach here if there is insufficient heap available to start
the scheduler. */
for (;;);
return 0;
}
/*-----------------------------------------------------------*/
static void prvSetupHardware( void )
{
//vParTestInitialise();
}
/*-----------------------------------------------------------*/
Am I missing something or including something that shouldn’t be there?
Thanks!