我真的很喜欢在嵌入式项目中使用VScode + cortex调试扩展+在Keil或Eclipse上的openOCD。尽管我无法理解如何设置活动变量视图,您可以使用eclipse + openOCD设置该视图。
1.是否有可能使用openOCD和VScode?上的皮层调试来实时查看社署的全局变量
只有当我暂停程序时,当程序被调试时,我才能看到变量值:
跑步时:
柜台:没有
停顿时:
柜台: 550
皮层调试配置:
{
"version": "0.2.0",
"configurations": [
{
"name": "Cortex Debug",
"cwd": "${workspaceRoot}",
"executable": "D:\\Code\\embedded\\STM32F1\\build\\STM32F1.elf",
"device": "STM32F103C8",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"svdFile": "D:\\Code\\embedded\\STM32F1\\STM32F103.svd",
"configFiles": [
"D:\\apps\\openOCD\\OpenOCD-20190426-0.10.0\\share\\openocd\\scripts\\board\\stm32f103c8_blue_pill.cfg"
]
}
]
}发布于 2019-09-08 10:54:39
您可以在ST服务器上使用活动变量视图,而不是使用OCD。在STM32CubeIDE上进行了测试。将在VSCODE上进行测试时更新。
https://stackoverflow.com/questions/57006387
复制相似问题