得到c13 c23 c33 是001
7、控制块块3的存取控制与数据块(块0、1、2)不同,它的存取控制如下:
密码A 存取控制 密码B
C13 C23 C33 Read Write Read Write Read Write
0 0 0 Never KeyA|B KeyA|B Never KeyA|B KeyA|B
0 1 0 Never Never KeyA|B Never KeyA|B Never
1 0 0 Never KeyB KeyA|B Never Never KeyB
1 1 0 Never Never KeyA|B Never Never Never
0 0 1 Never KeyA|B KeyA|B KeyA|B KeyA|B KeyA|B
0 1 1 Never KeyB KeyA|B KeyB Never KeyB
1 0 1 Never Never KeyA|B KeyB Never Never
1 1 1 Never Never KeyA|B Never Never Never
这个表中,看到可以写A, B密码的
6、数据块(块0、块1、块2)的存取控制如下:
控制位(X=0..2) 访 问 条 件 (对数据块 0、1、2)
C1X C2X C3X Read Write Increment Decrement, transfer,
Restore
0 0 0 KeyA|B KeyA|B KeyA|B KeyA|B
0 1 0 KeyA|B Never Never Never
1 0 0 KeyA|B KeyB Never Never
1 1 0 KeyA|B KeyB KeyB KeyA|B
0 0 1 KeyA|B Never Never KeyA|B
0 1 1 KeyB KeyB Never Never
1 0 1 KeyB Never Never Never
1 1 1 Never Never Never Never
想写新密码到卡,如:stm32f替换默认的6个0xFF,如何做到呢?
控制字节默认FF 07 80 69, 换成位是:
1 1 1 1 1 1 1 1
0 0 0 0 0 1 1 1
1 0 0 0 0 0 0 0
块3 块2 块1 块0 块3 块2 块1 块0
块3格式是:
c23_b c13_b
c13 c33_b
c33 c23
得到c13 c23 c33 是001
7、控制块块3的存取控制与数据块(块0、1、2)不同,它的存取控制如下:
密码A 存取控制 密码B
C13 C23 C33 Read Write Read Write Read Write
0 0 0 Never KeyA|B KeyA|B Never KeyA|B KeyA|B
0 1 0 Never Never KeyA|B Never KeyA|B Never
1 0 0 Never KeyB KeyA|B Never Never KeyB
1 1 0 Never Never KeyA|B Never Never Never
0 0 1 Never KeyA|B KeyA|B KeyA|B KeyA|B KeyA|B
0 1 1 Never KeyB KeyA|B KeyB Never KeyB
1 0 1 Never Never KeyA|B KeyB Never Never
1 1 1 Never Never KeyA|B Never Never Never
这个表中,看到可以写A, B密码的
6、数据块(块0、块1、块2)的存取控制如下:
控制位(X=0..2) 访 问 条 件 (对数据块 0、1、2)
C1X C2X C3X Read Write Increment Decrement, transfer,
Restore
0 0 0 KeyA|B KeyA|B KeyA|B KeyA|B
0 1 0 KeyA|B Never Never Never
1 0 0 KeyA|B KeyB Never Never
1 1 0 KeyA|B KeyB KeyB KeyA|B
0 0 1 KeyA|B Never Never KeyA|B
0 1 1 KeyB KeyB Never Never
1 0 1 KeyB Never Never Never
1 1 1 Never Never Never Never
默认控制控制块,可以读写块0,1,2
控制字用默认的FF 07 80 69就行了,除非有特殊的要求
一周热门 更多>