cancel
Showing results for 
Search instead for 
Did you mean: 

Why do i have to keep on changing CHV1 on smartcard to access IMSI

RUddi.1
Associate

I am working with a STM3220G-EVAL board and am using the SMARTCARD_T0 example code (from the STM32 website, “STM32Cube_FW_F2_V1.9.0�?/CubeF2 firmware.

With the example code, the default value of uint8_t CHV1[8] = {'0', '0', '0', '0', '0', '0', '0', '0'};

near the end of the code, I try to read the IMSI file, which requires CHV1 to be verified, but pin verification is unsuccessful.

I added a new command ‘UNBLOCK’ after getting response of the MF. The UNBLOCK code executes successfully by changing the CHV1 to {'1', '2', '3', '4', '5', '6', '7', '8'}, and I do manage to read the IMSI file.

So why is it every time I restart the board, I have to include the UNBLOCK command to have a successful verify. Why isn’t the new CHV being saved?

0 REPLIES 0