Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hi,
I find BIOS_start() always called in the end of main() function, and what's the use of BIOS_start()?
Thanks!
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: TI-RTOS
Hi,
I find BIOS_start() always called in the end of main() function, and what's the use of BIOS_start()?
Thanks!
Hi Wenhao,
BIOS_start() starts the RTOS's (i.e. SYSBIOS) scheduler thus starting the Task functions. It also enables hardware and software interrupts, and semaphores.
It is called at the end of main because after calling BIOS_start, the various user created (and system) tasks start executing and execution never returns to main. Hence there should be no code (initialization or otherwise) in main after BIOS_start as it will never get executed.
You can find more details in the SYSBIOS user guide which is available in the BIOS install directory under docs. Refer to the section named SYS/BIOS startup sequence. Please post further questions on this (or other CCS/Tools related topics) in the CCS Forum: https://e2e.ti.com/support/tools/ccs/f/81
Regards
-Nitin