Insert title here

vscode stm32cubemx freertos使用stlink多线程调试

方法来源于STM32CubeIDE For Visual Studio Code FreeRTOS多线程调试_哔哩哔哩_bilibili

在运行与调试栏中点击新建launch.json

image

 

在launch.json文件后面添加,添加完成后保存

,
            "serverRtos": {
                "enabled": true,
                "port": "60000",
                "driver": "freertos"
            }

  

image

 

 点击运行和调试,再点击继续

image

 

点击暂停运行,就可以看到旁边的调用堆栈显示了我们每一个线程的调用栈,当前状态是否挂起,进行freertos调试,可以打断点进行调试

image

 

我们在stm32cubemx中的defaultTask和myTask02可以愉快调试了

image

 

 

a35a6f25-af50-4add-8237-b705bdde997e

 

posted @ 2026-07-25 15:41  这一切足够了  阅读(15)  评论(0)    收藏  举报
复制代码