cancel
Showing results for 
Search instead for 
Did you mean: 

RTOS UNDEFINED REFERENCE TO 'OsMessageGet/Put' for example in https://www.youtube.com/watch?v=Iyc0vk4jG1E

AMeta
Associate II

I've noticed that these a lot of differences between what was spoken in the presentation and what we were told to enter in.

ie:

osThreadId Task1Handle;

osThreadId Task2Handle;

osMessageQId Queue01Handle; <--- example

osThreadId_t Task1Handle;

osThreadId_t Task2Handle;

osMessageQueueId_t Queue01Handle; <-- what mine produces

which is fine, but where my errors start to pop up are at the starttask1 / 2 functions

where i get

1) Description Resource Path Location Type

make: *** [makefile:45: FREERTOSex1.elf] Error 1 FREERTOSex1 C/C++ Problem

2)Description Resource Path Location Type

undefined reference to `osMessageGet' main.c /FREERTOSex1/Src line 258 C/C++ Problem

3)Description Resource Path Location Type

undefined reference to `osMessagePut' main.c /FREERTOSex1/Src line 235 C/C++ Problem

4)Description Resource Path Location Type

format '%d' expects argument of type 'int', but argument 2 has type 'void *' [-Wformat=] main.c /FREERTOSex1/Src line 259 C/C++ Problem

1 REPLY 1
Zidxein
Associate