Skip to content

EmberProbe v0.9.1

Choose a tag to compare

@github-actions github-actions released this 05 Nov 08:47
· 75 commits to master since this release

新增

  1. 采样连接时,侧栏已展开的外设寄存器持续刷新,最高 20 Hz,寄存器很多时自动降速;刷新不打断点击和输入,变化的数值保持高亮约 1 秒。
  2. 外设寄存器支持非调试、托管单核调试运行及调试暂停三种状态读写,访问本身不暂停、复位或恢复目标;未调试时复用已连接的采样会话。
  3. Agent 支持 STM32CubeMX2(.ioc2)工程:新增只读 cubemx_query,cubemx_prepare 可在暂存副本上执行白名单配置命令,确认后生成代码。
  4. Agent 可不复位附加调试:mcu-debug-control --start --attach(MCP debug_start 的 attach: true)只暂停运行中的固件,用于检查卡死现场。
  5. 故障分析可诊断“没有 fault 但卡死”:给出当前中断处理函数、中断屏蔽状态,并采样 PC 判断是否停在紧密循环。
  6. mcu-variables 新增 --snapshot-csv --output <文件>,把数组或结构体的当前值写成 CSV。
  7. 波形变量右键菜单新增临时增益输入框和 ±0.1 按钮,仅缩放当前波形图的显示,记录和 CSV 保留原值。
  8. Agent 配置移至独立卡片,逐行列出各 MCP 客户端状态,可在侧栏安装、升级、移除或复制配置;新增默认关闭的工作区“完全允许 Agent 操作”开关。
  9. 开启 editor.mouseWheelZoom 后,侧栏和波形图支持 Ctrl/Command+滚轮独立缩放(50%~200%)。

优化

  1. 侧栏查看列表的结构体、数组与运行时对象仅在展开时采样,折叠的树及其内部变量不再占用读取。
  2. 相邻的同宽度外设寄存器合并为一条读取命令,SVD 文件未变化时不再重复读取和计算哈希,采样与寄存器访问撞车时不再跳过整个采样周期。
  3. VS Code 设置缩减为 21 项,归入 4 个大类并提供中英双语描述。
  4. MCP 配置不再写入 EMBERPROBE_WORKSPACE 和项目级文件,用户级条目由所有工程共用,多个工作区可同时使用;各客户端原生配置可自动合并。
  5. CubeMX 和 CubeMX2 路径统一到 VS Code 用户设置,CubeMX2 优先通过 ST 官方安装登记检测。
  6. 内存占用只自动采用能放下当前 ELF 所有节的链接脚本,没有匹配时提示选择。
  7. variables_sample 的间隔改为从本次采样开始算起,读取耗时不再叠加到间隔上。
  8. docs/ 按读者重组,用户指南汇总为 docs/guide/ 下的 7 篇中文文档。

修复

  1. 修复 xPack OpenOCD 仅提供公开内存命令时外设访问失败,以及后台发现 CubeMX 路径导致外设事务误失效。
  2. 修复写入与回读完成后的状态变化把成功写入报告为失败;外设事务超时提示给出实际的 5 秒预算。
  3. 修复非调试时打开或恢复外设视图自动启动临时 OpenOCD,以及忙碌提示误报为 Agent 读取变量。
  4. 修复此前写入的 MCP 工作区绑定让其他工程静默连到被绑定窗口的问题,升级时移除。

移除

  1. 撤回固件相同时跳过烧录的优化:侧栏下载、Agent 烧录及调试器默认 launch 总是正常擦写、校验并复位。
  2. 移除临时探针连接的外设读写:未调试时必须先开启采样。
  3. 移除 memory.regionKinds、mcp.toolsets、probeSerial、sampleIntervalMs、maxSamples、enablePrettyPrinting 和 prettyPrinterPath 设置;EMBERPROBE_MCP_TOOLSETS 环境变量不再生效。

Added

  1. While sampling is connected, open peripheral registers in the sidebar refresh continuously at up to 20 Hz, slowing down with very many registers; refreshing does not interrupt clicks or edits, and changed values stay highlighted for about a second.
  2. Read and write SVD peripherals without a debug session, during managed single-core debugging or while paused, without halting, resetting or resuming for access; outside debugging, access reuses the connected sampling session.
  3. Support STM32CubeMX2 (.ioc2) projects for Agents: read-only cubemx_query, allowlisted configuration commands on a staged copy through cubemx_prepare, and generation after confirmation.
  4. Debug without reset through mcu-debug-control --start --attach (MCP debug_start with attach: true), which only halts the running firmware so a hung target can be inspected.
  5. Diagnose hangs without a fault: fault analysis reports the active handler and interrupt masks, and samples PC to tell whether the core sits in a tight loop.
  6. Add mcu-variables --snapshot-csv --output <file>, writing the current values of an array or structure as CSV.
  7. Add temporary per-variable waveform gain with an input and ±0.1 buttons, scaling only the current chart's display while recording and exporting raw values.
  8. Move Agent configuration to its own card listing each MCP client's state with install, upgrade, remove and copy actions, and add an opt-in workspace full-access switch.
  9. Honor editor.mouseWheelZoom with independent Ctrl/Command+wheel zoom (50–200%) in the sidebar and waveform tabs.

Improved

  1. Sample structs, arrays and runtime objects in the sidebar watch list only while expanded, so a closed tree and the variables inside it cost no reads.
  2. Read adjacent peripheral registers of one width with a single command, stop re-reading and re-hashing an unchanged SVD file, and no longer lose a whole sampling interval when a tick collides with register access.
  3. Organize VS Code settings into 21 bilingual entries across four groups.
  4. Stop writing EMBERPROBE_WORKSPACE and project-level files when configuring MCP clients, so one user-level entry serves every project and several workspaces can work at once; native client configurations now merge automatically.
  5. Move CubeMX and CubeMX2 paths to VS Code User settings, with CubeMX2 discovery preferring ST's official bundle registration.
  6. Auto-select only linker scripts whose regions hold every section of the current ELF, and ask when none match.
  7. Measure the variables_sample interval from sample start to sample start, so read time no longer stretches it.
  8. Reorganize docs/ by reader, consolidating user guides into seven Chinese pages under docs/guide/.

Fixed

  1. Fix peripheral access failing when xPack OpenOCD offers only public memory commands, and background CubeMX discovery invalidating peripheral transactions.
  2. Stop a state change after a finished write and readback from reporting the write as failed, and name the actual 5 s budget in peripheral transaction timeouts.
  3. Stop the peripheral view starting a temporary OpenOCD when it opens or restores without debugging, and stop the busy message blaming an Agent variable read.
  4. Remove the earlier MCP workspace binding on upgrade, which silently sent other projects to the bound window.

Removed

  1. Remove the identical-firmware download shortcut: sidebar downloads, Agent flashing and the debugger's default launch always program, verify and reset.
  2. Remove temporary probe connections for peripheral access; outside debugging, start sampling first.
  3. Remove the memory.regionKinds, mcp.toolsets, probeSerial, sampleIntervalMs, maxSamples, enablePrettyPrinting and prettyPrinterPath settings; EMBERPROBE_MCP_TOOLSETS is no longer honored.