Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FreeRTOS, Eclipse IDE, and Syntax Errors

I have a slight annoyance when dealing with FreeRTOS code in Eclipse and I'm not sure if it's just me or if other people have this issue too but I see a lot of syntax errors highlighted in my code but it compiles/executes fine. The syntax errors seem to be caused by FreeRTOS specific code like:

signed portCHAR *x;

or

vSemaphoreCreateBinary (semaphore);

or

signed portBASE_TYPE gpsTaskStart (void)
{
  return xTaskCreate (vGPSTask, (const signed portCHAR * const) "GPS", configMINIMAL_STACK_SIZE, NULL, (tskIDLE_PRIORITY + 1), &taskHandles [TASKHANDLE_GPS]);
}

I was wondering if there was a way to configure Eclipse to parse this syntax properly.

like image 272
MSumulong Avatar asked Sep 11 '26 17:09

MSumulong


1 Answers

I think you just have to update your Eclipse project configuration for the incremental checker to be able to find FreeRTOS symbol definitions.

Right click on your project > Properties > C/C++ General > Path and Symbols > Includes. Add the FreeRTOS folder there.

like image 153
greydet Avatar answered Sep 13 '26 10:09

greydet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!