spi_scan
Scan each SPI chip-select with JEDEC ID 0x9F to detect onboard NOR/NAND flash and decode manufacturer and capacity; other SPI devices need specific commands.
Instructions
逐条 CS 读 JEDEC ID(0x9F),找出板上挂的 SPI flash,并解出厂商与容量。
★ SPI 没有地址概念,所以「扫描」只能是「对每条 CS 发 0x9F」。因此本工具 只对遵守 0x9F 的 SPI NOR/NAND flash 有效;对 SPI 传感器 / ADC / 显示驱动 (各有自己的命令字)扫不出来是正常的,不是故障 —— 那种器件请用 spi_read_reg 给具体命令字。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bus | No | ||
| port | No | ||
| baudrate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |