diff --git a/src/espIdf/openOcd/boardConfiguration.ts b/src/espIdf/openOcd/boardConfiguration.ts index a90647537..b33a1c028 100644 --- a/src/espIdf/openOcd/boardConfiguration.ts +++ b/src/espIdf/openOcd/boardConfiguration.ts @@ -49,7 +49,7 @@ export const defaultBoards = [ } as IdfBoard, { name: "ESP32-S3 chip (via builtin USB-JTAG)", - description: "ESP32-S3 used with ESP-PROG board", + description: "ESP32-S3 debugging via builtin USB-JTAG", target: "esp32s3", configFiles: ["board/esp32s3-builtin.cfg"], } as IdfBoard, diff --git a/src/espIdf/tracing/gdbHeapTraceManager.ts b/src/espIdf/tracing/gdbHeapTraceManager.ts index f608b51d2..f95689b97 100644 --- a/src/espIdf/tracing/gdbHeapTraceManager.ts +++ b/src/espIdf/tracing/gdbHeapTraceManager.ts @@ -53,13 +53,20 @@ export class GdbHeapTraceManager { if (isOpenOcdLaunched) { this.showStopButton(); ensureDir(join(workspace.fsPath, "trace")); - const fileName = `file://${join(workspace.fsPath, "trace").replace( - /\\/g, - "/" - )}/htrace_${new Date().getTime()}.svdat`; - await this.createGdbinitFile(fileName, workspace.fsPath); const modifiedEnv = appendIdfAndToolsToPath(workspace); const idfTarget = modifiedEnv.IDF_TARGET || "esp32"; + let cpuCores = 1; + if (idfTarget === 'esp32' || idfTarget === 'esp32s3') { + cpuCores = 2; + } + let traceFilePath = ''; + for(let i=1; i<=cpuCores; i++) { + traceFilePath +=`file://${join(workspace.fsPath, "trace").replace( + /\\/g, + "/" + )}/htrace_${new Date().getTime()}.cpu${i-1}.svdat `; + } + await this.createGdbinitFile(traceFilePath, workspace.fsPath); const gdbTool = getToolchainToolName(idfTarget, "gdb"); const isGdbToolInPath = await isBinInPath( gdbTool,