This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: Code Composer Studio
Hi there
I don't know how to make new task in Simple Peripheral project.
Does any body know?
Hi,
You can review the training material related to TIRTOS we provide, especially this video.
In addition, you can get inspired by how the SimplePeripheral task is created by the function SimplePeripheral_createTask(). The function SimplePeripheral_createTask() is called in the main function before starting SYS/BIOS [BIOS_start();]
I hope this will help,
Regards,
Hi
Thank you for introducing that video but unfortunately I can't afford it. Would you please introduce me some free tutorials about RTOS - especially about making a new task or UART in CCS?
Hi,
What do you mean by "can't afford it"? In theory all the training material provided is free of charge. Anyway, you can also review the SLA lab related to TIRTOS.
Regards,
In this page; https://www.embeddedadvantage.com/ti-rtos
If I want to watch the full movies I should purchase it. I will be happy if you tell me I'm wrong.
BTW thank you for free tutorial.
Hi,
Thank you for the link, but I did suggest you a free video! https://training.ti.com/getting-started-ti-rtos-chapter-7-using-tasks
Regards,
Do you know some examples which have more than 3 tasks (because the example i am using has 3 tasks) in order that I can learn how to add the extra task?
Hi,
// Task configuration #define MY_TASK_PRIORITY 2 #ifndef MY_TASK_STACK_SIZE #define MY_TASK_STACK_SIZE 2048 #endif Task_Struct myTask; #if defined __TI_COMPILER_VERSION__ #pragma DATA_ALIGN(appTaskStack, 8) #else #pragma data_alignment=8 #endif uint8_t myTaskStack[MY_TASK_STACK_SIZE]; static void MyTask_taskFxn(UArg a0, UArg a1); void MyTask_createTask(void) { Task_Params taskParams; // Configure task Task_Params_init(&taskParams); taskParams.stack = myTaskStack; taskParams.stackSize = MY_TASK_STACK_SIZE; taskParams.priority = MY_TASK_PRIORITY; Task_construct(&myTask, MyTask_taskFxn, &taskParams, NULL); } static void MyTask_taskFxn(UArg a0, UArg a1){ while(1){ } }
And call MyTask_createTask() in main before BIOS_start();
Regards,