Other Parts Discussed in Thread: MSP430F5438A, SYSBIOS
Hello
I am using TI-RTOS on MSP430F5438A microcontroller.
My question is:
How many clock cycles does TI-RTOS take for context switching.
Thanks!
Arslan
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.
Other Parts Discussed in Thread: MSP430F5438A, SYSBIOS
Hello
I am using TI-RTOS on MSP430F5438A microcontroller.
My question is:
How many clock cycles does TI-RTOS take for context switching.
Thanks!
Arslan
Hi Arslan,
What version of TI-RTOS are you using ? I have shared some numbers from TI-RTOS 2.00.02 below. This version of TI-RTOS includes SYS/BIOS 6.40.02 kernel. The cdoc for this kernel includes the MSP430 benchmarks: http://downloads.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/sysbios/6_40_02_27/exports/bios_6_40_02_27/docs/cdoc/ti/sysbios/benchmarks/doc-files/benchmarks.html
I am using the MSP430 small model benchmarks as reference here. You can also obtain the large model numbers from the above link.
On the small model, a semaphore post with no context switch takes 194 cpu cycles and a sempahore post with context switch takes 286 cycles. If you take the difference of these numbers, you get 92 cycles which should roughly be the number of cpu cycles it takes to do a task context switch.
Best,
Ashish