This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Porting from RTX to CMSIS-OS version

Hi guys,
I'm migrating my code written for RTX to the CMSIS-OS version of the RTX. The main difference with the RTX version is the RTOS start. The RTX uses:

os_sys_init();

while CMSIS-OS version uses:

osKernelStart();

The difference between these two is that the osKernelStart returns to main(), while os_sys_init() does not. With osKernelStart the main() would exit, going into a while(1) loop, wasting CPU resources. How do you get past this problem? With RTX it was simple, create an init task which starts all other tasks and then os_delete_self().

Thanks and best regards,
George

0