In the evkmimxrt1180_freertos_message_buffers_secondary_core example project, the FreeRTOS configuration is as follows:
#define configMAX_PRIORITIES 56
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0
The application can be debugged normally in the IDE (MCUXpresso IDE). However, when debugging with VS Code, the debugger exits after FreeRTOS starts the scheduler.
The debug session terminates when execution reaches the following code in vTaskStartScheduler():
xNextTaskUnblockTime = portMAX_DELAY;
xSchedulerRunning = pdTRUE;
xTickCount = ( TickType_t ) configINITIAL_TICK_COUNT;
After these variables are initialized and before the first task is scheduled, the debugger disconnects and the debug session ends.
Could you help me test this in the IDE and VS Code and find a solution?