cancel
Showing results for 
Search instead for 
Did you mean: 

Cube not finding references even though path included

NicRoberts
Senior

I have a FreeRTOS project but I cant use xTaskCreate even though its in the paths list (see image below)
Frustratingly this is the exact same set up I was using last week in a similar project that worked but today.... no dice.

Why isn't the compiler finding the references? They all exist in the directories in the paths & includes list. In fact if I right click & ask to find the definition Cube quite happily opens the correct file, so why cant the compiler find them?

I check that the flag for the xTaskCreate define was set correctly (it is).

EDIT :: User error, I forgot to delete the GCC folders for all the other ARM_CMxx processors that I'm not using. Hence I was getting what were in fact multiple define errors.

NicRoberts_0-1755527592294.png

 

 

3 REPLIES 3
TDK
Super User

Did you #include task.h?

If you feel a post has answered your question, please click "Accept as Solution".

Yes, I found the issue, multiple defines. I've edited the OP accordingly.

KnarfB
Super User

"undefined reference" sounds like an error message from the linker.

Did you add the necessary FreeRTOS source folders under "source location"?

hth

KnarfB