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.

CCS/TMS570LS0432: How to set priority of a task which I design in VIM of HalCoGen?

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hello, TI Engineers

I want to design tasks which could calculate the data from FEE, SPI and CAN. For example, I hope I could design the task of the high priority is to calculate the data from SPI. The task of the secondary priority is to calculate the data from CAN. The task of the low priority is to calculate the data from FEE. How to set VIM in HalCoGen? Just add function name on the VIM priority form of VIM RAM?

Thanks and Regards!

Xinyu 

  • Hello Xinyu,

    Normally, when you create a task, you need to set the priority at which the task should run.

    For example, the xTaskCreate(..) in freeRTOS.

    create task 1 with priority =1
    xTaskCreate(vTask1,"Task1", configMINIMAL_STACK_SIZE, NULL, 1, &xTask1Handle) != pdTRUE);

    create task 2 with priority =2
    xTaskCreate(vTask1,"Task2", configMINIMAL_STACK_SIZE, NULL, 2, &xTask2Handle) != pdTRUE);

    BTW, you has several threads for different MCU questions, if TI's reply answered your answer, please click “This Resolved My Issue” to close the thread. Thank you!
  • Ok, I am so sorry. I will close the MCU questions which have been answered.

    Thanks and regards!

    Xinyu