调试指南
Read time: 10 minute(s)
调试开关
在 Luban-Lite 中 eFuse 驱动提供了 Command 用于查看、读取、写入 eFuse 数据,进入 menuconfig
的功能配置界面,进行如下配置即可支持 eFuse
Command。
Drivers options ---> Drivers examples ---> [*] Enable SID driver test command
使用帮助
efuse help
efuse command usage: efuse help : Get this help. efuse init : Initialize eFuse driver. efuse dump offset len : Dump data from eFuse offset. efuse read addr offset len : Read eFuse data to RAM addr. efuse write addr offset len : Write data to eFuse from RAM addr. efuse writehex offset data : Write data to eFuse from input hex string. efuse writestr offset data : Write data to eFuse from input string.
查看 eFuse
数据
efuse dump 0 100
0x00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000010: 47 51 CE 78 71 93 51 08 00 00 00 00 00 00 10 04 |GQ.xq.Q.........| 0x00000020: 00 00 00 00 6F 78 00 00 FC 12 12 3C 94 67 79 01 |....ox.....<.gy.| 0x00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
写入 eFuse 数据
efuse writestr 0xe0 Artinchip
Program efuse done.
efuse dump 0 100
0x00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000010: 47 51 CE 78 71 93 51 08 00 00 00 00 00 00 10 04 |GQ.xq.Q.........| 0x00000020: 00 00 00 00 6F 78 00 00 FC 12 12 3C 94 67 79 01 |....ox.....<.gy.| 0x00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x00000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 0x000000e0: 41 72 74 69 6E 63 68 69 70 00 00 00 00 00 00 00 |Artinchip.......| 0x000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
读取 eFuse 数据
efuse read 0x40000000 0 0x100
Read efuse done.
p 0x40000000 0x100 1
40000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40000010: 47 51 ce 78 71 93 51 08 00 00 00 00 00 00 10 04 40000020: 00 00 00 00 6f 78 00 00 fc 12 12 3c 94 67 79 01 40000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40000040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40000050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40000060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40000070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40000080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40000090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 400000a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 400000b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 400000c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 400000d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 400000e0: 41 72 74 69 6e 63 68 69 70 00 00 00 00 00 00 00 400000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00