Tool/software: TI-RTOS
Hi,
We are trying to exit "gracefully" from sys/bios - making sure all threads, and other system resources (including HW interrupts) that were set by sys/bios shall be terminated.
We call BIOS_start() in main() to start sys/bios and on some thread upon some condition we want to terminate sys/bios and everything it set up, and we we want to get back to main right after the call to BIOS_start() and perform some more operations .
We have tried calling BIOS_exit() hoping we will get back to main after all threads and resources were terminated but it did not seem to work (looking at ROV all resources seem operational) - we did not get back to main().
then we tried registering a callback function using System_atexit(func). and after the call the BIOS_exit() func was indeed called but resources and threads did not seem to terminate and we never reach back to main().
Can you please help us configure it correctly so we will be able to terminate sys/bios properly and get back to main()