在线客服

联系电话

0755-83258725

返回顶部

点击立即购买

读取ID的高级选项:读取独一无二的ID(Read Unique ID)

发表时间:2019-03-14 发表人:领存兵哥 评论数:0
UID目前被广泛用于版权保护、加密等领域,例如,配置汽车钥匙,软件防盗版等。

Unique ID,可以理解为独一无二的ID,读取命令为:EDh(command)+00h(address)

脚本如下:

将脚本保存为“EDh00h.ssl”载入NFA100软件中,得到结果如下:

NFA100 Ver2.0 Beta6.5
Script Execution Result

 B2 A1 E6 54 D0 48 00 A0 FF 00 FF 00 FF 00 FF 00


那么,如何知道Nand Flash是否支持UID的功能呢?在厂商提供的规格书中,ONFI Parameter Page data structure表格中描述如下:

第8个Byte的第5个bit 如果是“1”,则支持Read UID功能。

运行脚本:

'Command(0 Address, 0 Data)
CMND00 0 EC 0 0
'Send Address(1 Address)
SNDAD1 0 00 0
'Receive data and save to the result file
GETDAT 0 00FF 0 1    //获取255个Bytes的结果

得到如下结果:

4F 4E 46 49 FE 03 F8 DD FF 3F 0F 00 03 00 3D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4D 49 43 52 4F 4E 20 20 20 20 20 20 4D 54 32 39 46 32 35 36 47 30 38 43 42 43 42 42 4A 34 20 20 2C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 A0 08 00 00 00 00 00 00 00 04 00 00 90 08 00 00 01 23 02 94 00 03 03 01 00 00 01 00 FF 02 1E 00 00 00 00 00 00 00 00 00 00 00 00 00 02 3F 00 00 00 C4 09 30 75 64 00 90 01 3F FF 02 23 00 10 00 23 00 05 03 67 00 96 00 00 00 1B 44 00 00 01 00 02 00 01 00 00 00 03 10 01 81 04 02 04 01 1C 90 10 FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 09 BA


其中Byte 8-9为FFh,3Fh,说明此Nand Flash支持Read Unique ID



评论
发表评论
icon