FreeRTOS Debugging in VS Code on RT1180-EVK 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? MCXC Re: FreeRTOS Debugging in VS Code on RT1180-EVK Hi @yanyanwang,
After building the project in the Domains folder, you should find both the primary core and secondary core applications in this folder.
If you click the play button for both .elf files, does a debug session start for each of them?
If you run the primary core until it passes the MCMGR_StartCore function, are you able to pause the secondary core debug session?
Best Regards, Pablo Re: FreeRTOS Debugging in VS Code on RT1180-EVK Hi, I can successfully start a debug session on the secondary core, and everything works as expected before the FreeRTOS scheduler starts. However, as soon as FreeRTOS starts scheduling tasks (after vTaskStartScheduler() is called), the debugger immediately disconnects and the debug session exits. Could you please help me identify the possible cause of this issue? If there are any recommended debugger settings or FreeRTOS configurations that I should check, please let me know. Thank you. Best regards, yanyan
查看全文