flash_verify
Verify flashed firmware by reading back chip memory and comparing byte-by-byte with the source file (.bin/.hex/.elf). Reports the first mismatch offset and context to diagnose incomplete or incorrect writes.
Instructions
烧录后校验:把固件文件与芯片上实际内容逐字节比对(只读,走 hotplug)。
比 -v 有用:-v 只能紧跟烧录命令,等于重烧一遍;这个读回来直接比,
还会报出第一个不一致的偏移和前后 8 字节上下文 —— 能直接看出来是「整段没写进去」
还是「某几个字节错了」。
file_path 支持 .bin(配 address,默认 0x08000000)/ .hex / .elf。 烧完提示 "verified" 但设备不工作时,先调它排除「根本没烧进去」。 ★ 不要拿 CLI 的 -checksum 和 -fchecksum 互相验:两者口径不同,实测同一份固件 给出不同值。字节比对才是唯一真凭据。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sn | No | ||
| chunk | No | ||
| address | No | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |