FreeRTOS Debugging in VS Code on RT1180-EVK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FreeRTOS Debugging in VS Code on RT1180-EVK

108 Views
yanyanwang
Contributor I

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?

Labels (1)
0 Kudos
Reply
0 Replies
%3CLINGO-SUB%20id%3D%22lingo-sub-2383339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EFreeRTOS%20Debugging%20in%20VS%20Code%20on%20RT1180-EVK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2383339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EIn%20the%20evkmimxrt1180_freertos_message_buffers_secondary_core%20example%20project%2C%20the%20FreeRTOS%20configuration%20is%20as%20follows%3A%3C%2FP%3E%3CP%3E%23define%20configMAX_PRIORITIES%2056%3CBR%20%2F%3E%23define%20configUSE_PORT_OPTIMISED_TASK_SELECTION%200%3CBR%20%2F%3EThe%20application%20can%20be%20debugged%20normally%20in%20the%20IDE%20(MCUXpresso%20IDE).%20However%2C%20when%20debugging%20with%20VS%20Code%2C%20the%20debugger%20exits%20after%20FreeRTOS%20starts%20the%20scheduler.%3C%2FP%3E%3CP%3EThe%20debug%20session%20terminates%20when%20execution%20reaches%20the%20following%20code%20in%20vTaskStartScheduler()%3A%3C%2FP%3E%3CP%3ExNextTaskUnblockTime%20%3D%20portMAX_DELAY%3B%3CBR%20%2F%3ExSchedulerRunning%20%3D%20pdTRUE%3B%3CBR%20%2F%3ExTickCount%20%3D%20(%20TickType_t%20)%20configINITIAL_TICK_COUNT%3B%3CBR%20%2F%3EAfter%20these%20variables%20are%20initialized%20and%20before%20the%20first%20task%20is%20scheduled%2C%20the%20debugger%20disconnects%20and%20the%20debug%20session%20ends.%3C%2FP%3E%3CP%3ECould%20you%20help%20me%20test%20this%20in%20the%20IDE%20and%20VS%20Code%20and%20find%20a%20solution%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2383339%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EMCXC%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E