说明:
根据官方文档操作试验,在调试时报了错误异常:rtthread.elf has exited with code 42…
在第五步时报了上面错误异常。解决办法修改launch.json文件
打开launch.json文件,注释下面内容:
大概在72-80行处
/*{
"text": "target remote localhost:1234"
},
{
"text": "file rtthread.elf"
},
{
"text": "break main"
}*/
注释后,再F5单步调试就OK了