8.1.3. 调试指南

8.1.3.1. 调试开关

在 ZX-RTT 中 eFuse 驱动提供了 Command 用于查看、读取、写入 eFuse 数据,进入 menuconfig 的功能配置界面,进行如下配置即可支持 eFuse Command。

Rt-Thread options  --->
    RT-Thread Components  --->
        [*] MSH: command shell  --->

8.1.3.2. 使用帮助

aic /> 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.

8.1.3.3. 查看 eFuse 数据

aic /> 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         |................|

8.1.3.4. 写入 eFuse 数据

aic /> efuse writestr 0xe0 ZX
Program efuse done.
aic /> 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: 5A 58 00 00 00 00 00 00 00 00 00 00 00 00 00 00         |ZX..............|
0x000000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00         |................|

8.1.3.5. 读取 eFuse 数据

aic /> efuse read 0x40000000 0 0x100
Read efuse done.
aic /> 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: 5A 58 00 00 00 00 00 00 00 00 00 00 00 00 00 00
400000f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00