We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
when trying to execute the below code,
osThreadId_t tid1; tid1 = osThreadNew(job1, NULL, NULL); // Create a new thread
I am facing the error "main.c(24): error C202: 'osThreadId_t': undefined identifier". Which header file I should include to solve this error? And could anyone please tell me how to include the default header files path
#include "cmsis_os2.h"
Thank you for your reply. I have included the below code already in my file.
I have chosen the target 8051 - generic (for all variants) and chosen "use Simulator".
CMSIS-RTOS2 API (cmsis_o2.h) and implementations are only available for Cortex-M/A but not for 8051 targets.
Thank you very much