帮我检查一下下面的配置,并分析为什么RTT viewer能连上芯片,但是不打印log
{
"folders": [
{
"path": "."
}
],
"tasks": {
"version": "2.0.0",
"tasks": [
{
"label": "build",
"command": "cmake -S . -B Debug; ninja -C Debug -d stats",
"type": "shell",
"args": [],
"group": "build",
"problemMatcher": []
},
{
"label": "rebuild",
"command": "cmake -S . -B Debug; ninja -C Debug -t clean; ninja -C Debug -d stats",
"type": "shell",
"args": [],
"group": "build"
},
{
"label": "clean",
"command": "rd -r Debug",
"type": "shell",
"args": [],
"group": "build"
},
{
"label": "export to IAR",
"command": "./EWPtool.exe -p . -n onboard_io_m4 -c debug",
"type": "shell",
"args": [],
"group": "build"
}
],
},
"launch": {
"configurations": [
{
"type": "cortex-debug",
"request": "launch",
"name": "GDB",
"cwd": "${workspaceRoot}",
"gdbPath": "C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/arm-none-eabi-gdb.exe",
"executable": "${workspaceRoot}/Debug/binaries/onboard-io-firmware.elf",
"serverpath": "C:/Program Files/SEGGER/JLink_V846/JLinkGDBServerCL.exe",
"servertype": "jlink",
"device": "MIMX8MM4_M4",
"interface": "swd",
// "rttConfig": {
// "enabled": true,
// "address": "auto",
// "decoders": [
// {
// "label": "",
// "port": 0,
// "type": "console"
// }
// ]
// },
"svdFile": "${workspaceRoot}/MIMX8M_cm4.svd.xml",
"postLaunchCommands": [
"target remote localhost:50000",
// "monitor reset",
"monitor halt",
"load",
// "monitor go",
],
// "overrideResetCommands": [
// "monitor reset",
// "monitor halt",
// "load",
// ],
"runToEntryPoint": "main",
"showDevDebugOutput":"raw",
},
{
"type": "cspy",
"request": "attach",
"name": "C-Spy",
"target": "arm",
"program": "${workspaceRoot}/Debug/binaries/onboard-io-firmware.elf",
"driver": "J-Link/J-Trace",
"stopOnSymbol": "main",
"workbenchPath": "C:/Program Files/IAR Systems/Embedded Workbench 9.2",
"projectPath": "${workspaceFolder}",
"projectConfiguration": "Debug",
"leaveTargetRunning": false,
"trace": false,
"driverOptions": [
"--plugin=C:\\Program Files\\IAR Systems\\Embedded Workbench 9.2\\arm\\bin\\armbat.dll",
"--device_macro=C:\\Program Files\\IAR Systems\\Embedded Workbench 9.2\\arm/config/debugger/NXP/imx8m_trace.dmac",
"--backend",
"--endian=little",
"--cpu=Cortex-M4",
"--fpu=VFPv4_SP",
"-p",
"C:\\Program Files\\IAR Systems\\Embedded Workbench 9.2\\arm/config/debugger/NXP/MIMX8MM4_M4.ddf",
"--drv_verify_download",
"--semihosting",
"--device=MIMX8MM6_M4",
"--drv_communication=USB0",
"--drv_interface_speed=auto",
"--jlink_initial_speed=32",
"--jlink_reset_strategy=0,0",
"--drv_catch_exceptions=0x000",
"--drv_swo_clock_setup=72000000,0,2000000"
],
},
]
},
"settings": {
"files.associations": {
"*.h": "c",
"*.hpp": "cpp",
},
"C_Cpp.default.includePath": [
"C:/Program Files/IAR Systems/Embedded Workbench 9.2/arm/inc/c",
"C:/Program Files/IAR Systems/Embedded Workbench 9.2/arm/inc/cpp",
],
"C_Cpp.autoAddFileAssociations": false,
"cortex-debug.variableUseNaturalFormat": true,
"iar-debug.breakpointType": "Software",
"iar-debug.enableMulticoreLockstepMode": true,
"debug.allowBreakpointsEverywhere": true,
"files.autoGuessEncoding": true,
"iar.installationPath": "C:\\Program Files (x86)\\IAR Systems\\Embedded Workbench 6.0\\",
"iar.projectFile": "f:\\trend essential\\BEATS-Essential-Controller-onboard-io-firmware\\onboard_io_m4.ewp",
},
}
最新发布