2019-11-01 06:17 PM
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
2020-05-31 11:44 PM
I ran into this issue using CMSIS v2.
Try the solutions here: https://community.st.com/s/question/0D53W0000057Ywf/undefined-reference-to-osmessagegetput-from-cmsisosh-stm32cubeide?t=1590991691874