|
楼主 |
发表于 2022-6-17 18:08:24
|
显示全部楼层
如果有.vscode\launch.json就把这个文件删掉,然后先在iar里面选好调试工具再切换回code.
手动改launch.json也行,比较麻烦
- {
- // Use IntelliSense to learn about possible attributes.
- // Hover to view descriptions of existing attributes.
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
- "version": "0.2.0",
- "configurations": [
- {
- "type": "cspy",
- "request": "launch",
- "name": "Ctrl_PanelF.Prod",
- "target": "arm",
- "program": "${workspaceFolder}\\EWARM\\Prod\\Exe\\Project.out",
- "driver": "J-Link/J-Trace",
- "stopOnEntry": true,
- "workbenchPath": "${command:iar-config.toolchain}",
- "projectPath": "${workspaceFolder}\\EWARM\\Project.ewp",
- "projectConfiguration": "Prod",
- "driverOptions": [
- "--crun=disabled",
- "--endian=little",
- "--cpu=Cortex-M0+",
- "--fpu=None",
- "-p",
- "C:\\Program Files\\IAR Systems\\Embedded Workbench 9.1\\arm\\CONFIG\\debugger\\SiliconLaboratories\\EFM32TG11B340F64GQ48.ddf",
- "--semihosting",
- "--device=EFM32TG11B340F64GQ48",
- "--drv_mtb_regbase=0xF0040000",
- "--drv_mtb_minramaddr=0x20000000",
- "--drv_mtb_maxramaddr=0x20007FFF",
- "--drv_communication=USB0",
- "--drv_interface_speed=auto",
- "--jlink_initial_speed=1000",
- "--jlink_reset_strategy=0,0",
- "--drv_interface=SWD",
- "--drv_catch_exceptions=0x000",
- "--jlink_device_name=EFM32TG11BxxxF64"
- ],
- "download": {
- "deviceMacros": [
- "C:\\Program Files\\IAR Systems\\Embedded Workbench 9.1\\arm/config/debugger/SiliconLaboratories/Gecko_AAPv2.dmac"
- ]
- }
- }
- ]
- }
复制代码
|
|