osThreadNew() is called before osKernelStart() to define the main thread, and then by the main thread to start other threads.
`osKernelStart()` starts the RTOS kernel and enables thread switching, making it essential for multitasking.
What happens if the code execution reaches the infinite while(1) loop in the main function?
Reaching the infinite `while(1)` loop in the main function suggests an error occurred during platform initialization.