Tool/software:
Hello,
We are using SDK 8.6, with the R5F core running the FreeRTOS operating system. When creating tasks, the system enters the vApplicationStackOverflowHook function.
Let me describe the entire creation process. In the main function, the xTaskCreateStatic function is used to create a freertos_main task with a priority of 6 and a stack size of 327680. After executing the vTaskStartScheduler function, the freertos_main task runs and initially creates a new task A using the TaskP_construct function. Task A has a priority of 22 and a stack size of 8192 * 100. Within task A, another task B is created, also using the TaskP_construct function, with a priority of 13 and a stack size of 327680. Following this process, after task B is created, the system enters the vApplicationStackOverflowHook function, indicating a stack overflow in task A. However, by modifying the priority of the freertos_main task to 31 and deleting the task itself after execution, the system no longer enters the vApplicationStackOverflowHook function. I would appreciate your assistance in analyzing this situation.