Our code gets hang when we use API xTaskCreate() for second time, below is explanation:
- Our first task is created with priority tskIDLE_PRIORITY and it is running properly.
- Second task is created from first task with priority tskIDLE_PRIORITY were our code gets hang. (Above 2 points condition occur when no scheduler is started)
- On debug found that the scheduler is not started, but when we use scheduler before creating our first task of after creating first task the code hangs at vTaskStartScheduler();
What can be the possible reasons for this?
Is there anything we need to change in configuration?
FreeRTOS Kernel V10.0.1
Any help will be appreciated.