请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28388D工具/软件:
我有一个使用 CPU1 和 CM 的工程。每个代码库都位于不同的文件夹中:
. ├── README.md ├── cm │ ├── CM_FLASH │ │ ├── ... │ │ └── cm.out │ └── cmd │ └── flash.cmd ├── cpu1 │ ├── Debug │ │ ├── ... │ │ └── cpu1.out │ └── cmd │ └── flash.cmd ├── debug.launch ├── shared │ ├── .../.cpp │ └── .../.hpp ├── sw-motion.yaml └── target.ccxml
使用 CCS 12.x、我可以管理调试配置、该配置将:
- 构建这两个子工程
- 在每个内核上加载闪存
- 从初始断点开始
在 CCS 20.x 中、工作方式不同。 我作为工作区打开了包含两个子工程的根文件夹。 我可以成功构建每个子项目、但没有找到如何配置启动。
{
"version": "0.2.0",
"configurations": [
{
"name": "cm+cpu1",
"type": "ccs-debug",
"request": "launch",
"groupInfo": [
{
"name": "group",
"cores": [
"cm",
"cpu1"
],
"syncMode": true
}
],
"targetConfig": "$(cwd)/target.ccxml"
},
{
"name": "cm",
"type": "ccs-debug",
"request": "launch",
"projectInfo": {
"name": "motion-cm",
"resourceId": "/motion-cm"
}
},
{
"name": "cpu1",
"type": "ccs-debug",
"request": "launch",
"projectInfo": {
"name": "motion-cpu1",
"resourceId": "/motion-cpu1"
}
}
]
}
我没有找到如何正确设置该 launch.json。