Major problem with se05x_GetInfo SDK Project for IMXRT1170

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Major problem with se05x_GetInfo SDK Project for IMXRT1170

Jump to solution
5,976 Views
vilu
Contributor II

I am experiencing major problem with the project "se05x_getInfo" included  in latest SDK for IMX1170 ( SDK_2.x_MIMRT1170-EVK   ver 2.12.0 )

 

The project runs smoothly with the default configuration

 

Then  I try to activate the SCP03 protocol to connect to SE050so with the following define
** Use Platform SCP for connection to SE */
#define SSS_HAVE_SE05X_AUTH_PLATFSCP03 1


To use the correct key we have define the symbol "EXTERNAL_CUSTOMER_BUILD_CONFIGURATION" in the preprocessor setting

 

The program stops during the execution, Here you are a snapshot of the debug printout

smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 4 bytes
smCom :DEBUG:RAW Rx< (Len=7)
A5 00 02 90 00 02 AF
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000e90 len ----> 0x7
smCom :DEBUG:Received CRC:0x2af Calculated CRC:0x2af
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x0
smCom :DEBUG:Data[0]=0x90 len=2 Data[1]=0x90 Data[0]=0x2
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=2)
90 00
smCom :DEBUG:no lock mode
scp :DEBUG:Authentication Successful!!!
scp :DEBUG:FN: nxSCP03_Encrypt_CommandAPDU
scp :DEBUG: Input:cmdBuf (Len=6)
41 04 7F FF 02 06
scp :DEBUG:FN: nxSCP03_PadCommandAPDU
scp :DEBUG:Input: cmdBuf (Len=6)
41 04 7F FF 02 06
scp :DEBUG:Ouput: cmdBuf (Len=16)
41 04 7F FF 02 06 80 00 00 00 00 00 00 00 00 00
scp :DEBUG:FN: nxSCP03_Calculate_CommandICV
scp :DEBUG: Output: (Len=8)
28 61 00 D0 BD EE F2 D0
scp :DEBUG:Encrypt CommandAPDU

 

We can notice that the program stops all of the sudden when try to send an encrypted command


MCU Espresso debugger after a while shows the following active faults 

 

vilu_0-1660825835637.png

 

0 Kudos
1 Solution
5,833 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hello @vilu ,

 

Thanks for the information! Seems the MW from your side is not the latest version, and I just tried to enable platform SCP03 with the latest version, it just works as expected. Would you please try it on your side? Please kindly refer to the following for details.

To enable platform SCP in in the i.MX RT1170 MCUXpresso SDK, please update fsl_sss_ftr.h as below:

Kan_Li_0-1662015662882.png

Kan_Li_1-1662015748579.png

Kan_Li_2-1662015788834.png

The latest version is PlugAndTrust_v04.02.00_20220630 , you may download it from https://www.nxp.com/webapp/Download?colCode=SDK-EVK-MIMXRT1170-SE05X&appType=license .

 

The log out of se05x_GetInfo is as below:

App :INFO :PlugAndTrust_v04.02.00_20220630
sss :INFO :atr (Len=35)
00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08
01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41
54 50 4F
App :WARN :No SemsLite Applet Available.
sss :INFO :atr (Len=35)
00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08
01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41
54 50 4F
App :WARN :#####################################################
App :INFO :uid (Len=18)
04 00 50 01 D2 E2 20 8F 47 C3 5B 04 77 51 DA 0F
68 80
App :WARN :#####################################################
App :INFO :Applet Major = 3
App :INFO :Applet Minor = 1
App :INFO :Applet patch = 0
App :INFO :AppletConfig = 6FFF
App :INFO :With ECDSA_ECDH_ECDHE
App :INFO :With EDDSA
App :INFO :With DH_MONT
App :INFO :With HMAC
App :INFO :With RSA_PLAIN
App :INFO :With RSA_CRT
App :INFO :With AES
App :INFO :With DES
App :INFO :With PBKDF
App :INFO :With TLS
App :INFO :With MIFARE
App :INFO :With I2CM
App :INFO :Internal = 010B
App :WARN :#####################################################
App :INFO :Tag value - proprietary data 0xFE = 0xFE
App :INFO :Length of following data 0x45 = 0x45
App :INFO :Tag card identification data (Len=2)
DF 28
App :INFO :Length of card identification data = 0x42
App :INFO :Tag configuration ID (Must be 0x01) = 0x01
App :INFO :Configuration ID (Len=12)
00 04 A1 F4 45 88 4F 17 E5 19 C0 69
App :INFO :OEF ID (Len=2)
A1 F4
App :INFO :Tag patch ID (Must be 0x02) = 0x02
App :INFO :Patch ID (Len=8)
00 00 00 00 00 00 00 01
App :INFO :Tag platform build ID1 (Must be 0x03) = 0x03
App :INFO :Platform build ID (Len=24)
4A 33 52 33 35 31 30 32 31 45 45 45 30 34 30 30
BC 03 04 79 33 8D 18 10
App :INFO :JCOP Platform ID = J3R351021EEE0400
App :INFO :Tag FIPS mode (Must be 0x05) = 0x05
App :INFO :FIPS mode var = 0x00
App :INFO :Tag pre-perso state (Must be 0x07) = 0x07
App :INFO :Bit mask of pre-perso state var = 0x00
App :INFO :Tag ROM ID (Must be 0x08) = 0x08
App :INFO :ROM ID (Len=8)
2E 5A D8 84 09 C9 BA DB
App :INFO :Status Word (SW) (Len=2)
90 00
App :INFO :se05x_GetInfoPlainApplet Example Success !!!...
App :WARN :#####################################################
App :INFO :cplc_data.IC_fabricator (Len=2)
47 90
App :INFO :cplc_data.IC_type1 (Len=2)
D3 21
App :INFO :cplc_data.Operating_system_identifier (Len=2)
47 00
App :INFO :cplc_data.Operating_system_release_date (Len=2)
00 00
App :INFO :cplc_data.Operating_system_release_level (Len=2)
00 00
App :INFO :cplc_data.IC_fabrication_date (Len=2)
92 84
App :INFO :cplc_data.IC_Serial_number (Len=4)
05 21 70 99
App :INFO :cplc_data.IC_Batch_identifier (Len=2)
37 34
App :INFO :cplc_data.IC_module_fabricator (Len=2)
00 00
App :INFO :cplc_data.IC_module_packaging_date (Len=2)
00 00
App :INFO :cplc_data.ICC_manufacturer (Len=2)
00 00
App :INFO :cplc_data.IC_embedding_date (Len=2)
00 00
App :INFO :cplc_data.IC_OS_initializer (Len=2)
03 77
App :INFO :cplc_data.IC_OS_initialization_date (Len=2)
51 35
App :INFO :cplc_data.IC_OS_initialization_equipment (Len=4)
32 31 37 30
App :INFO :cplc_data.IC_personalizer (Len=2)
00 00
App :INFO :cplc_data.IC_personalization_date (Len=2)
00 00
App :INFO :cplc_data.IC_personalization_equipment_ID (Len=4)
00 00 00 00
App :INFO :cplc_data.SW (Len=2)
90 00
App :INFO :ex_sss Finished

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

View solution in original post

12 Replies
5,952 Views
vilu
Contributor II

Further investigation has revealed that if we avoid to use CAAM for the AES the program works smoothly.

We use this define to do it

/** Use SSS Layer ALT implementation */
#define SSS_HAVE_MBEDTLS_ALT_SSS 1

0 Kudos
5,943 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Thank you for the update.

Mike

0 Kudos
5,895 Views
vilu
Contributor II

Hi Mike,

However this workaround  not solved my problems.

I necessarily need to use CAAM since I plan to use black blob as key in SCP protocol

 

Regards

Vico 

0 Kudos
5,880 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @vilu ,

 

Have you also enabled SSS_HAVE_SCP_SCP03_SSS to 1 to configure PTMW_SCP?  Please kindly refer to chapter 6 of https://www.nxp.com.cn/docs/en/application-note/AN12450.pdf for more details.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
5,871 Views
vilu
Contributor II

Hi Kan,

I can confirm that SSS_HAVE_SCP_SCP03_SSS is set to 1

 

Regards

Vico

0 Kudos
5,866 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @vilu ,

 

Is it possible to share your fsl_sss_ftr.h and ex_sss_auth.h for a review? and what is the hostlib version used in this SDK project? and also which variant of SE050 is working with IMXRT1170?

 

Please kindly clarify.

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
5,856 Views
vilu
Contributor II

Hi Kan, 

 

Attached you will find the requested files, please take in consideration that I have declared "EXTERNAL_CUSTOMER_BUILD_CONFIGURATION"in the project setting.

The version SDK where I extracted se_hostlib example is SDK 2.12.0 ( 611 2022-07-14).  

 

Attached you will find the picture of the evaluation  board that contains SE50 that I am using.

 

Thanks in advance for the support

Vico 

0 Kudos
5,851 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi @vilu ,

 

Thanks for the information! I have checked the header files but no obvious issue found, and looks like you are using SSS_AUTH_SE050_DEVKIT_KEY_XXX as the platformSCP keys , but referring to the snapshots you uploaded, I could not figure out which variant of SE050 is on that board, not sure if you have run the se05x_GetInfo demo in plain communication, it would fetch the OEF ID of the device, and with it we may know what exactly the SE050 variant is . Would you please help to check on your side?

 

Thanks for your patience!

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
5,847 Views
vilu
Contributor II

Hi Kan

Attached you will find the debug printout of se05x_GetInfo application where you can find the requested information

 

Vico

 

hostLib:DEBUG:CAAM_GetDefaultConfig
hostLib:DEBUG:CAAM_Init
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_Wait Loop
App :INFO :PlugAndTrust_v04.01.01_20220112
smCom :DEBUG:phPalEse_i2c_open_and_configure Opening port
smCom :DEBUG:I2C driver Initialized :: fd = [12]
smCom :DEBUG:phNxpEseProto7816_Open: First open completed
smCom :DEBUG:phNxpEse_clearReadBuffer Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 260 bytes
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:1 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:2 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:3 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:TransceiveProcess nextTransceiveState 4
smCom :DEBUG:S-Frame PCB: c0
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=5)
5A C0 00 FF FC
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:RAW Rx< (Len=5)
A5 E0 00 3F 19
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x5
smCom :DEBUG:Received CRC:0x3f19 Calculated CRC:0x3f19
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame S-Frame Received
smCom :DEBUG:TransceiveProcess nextTransceiveState 7
smCom :DEBUG:S-Frame PCB: c7
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=5)
5A C7 00 F7 B1
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 37 bytes
smCom :DEBUG:RAW Rx< (Len=40)
A5 E7 23 00 A0 00 00 03 96 04 03 E8 00 FE 02 0B
03 E8 08 01 00 00 00 00 64 00 00 0A 4A 43 4F 50
34 20 41 54 50 4F 2A 8D
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x28
smCom :DEBUG:Received CRC:0x2a8d Calculated CRC:0x2a8d
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame S-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeSFrameData frameoffset=3 value=0x0
smCom :DEBUG:Data[0]=0x0 len=35 Data[34]=0x50 Data[79]=0x23
sss :INFO :atr (Len=35)
00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08
01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41
54 50 4F
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
hostLib:DEBUG:CAAM_AES_EncryptEcb
hostLib:DEBUG:CAAM_AES_EncryptEcbNonBlocking
hostLib:DEBUG:CAAM_Wait Loop
smCom :DEBUG:no lock mode
smCom :DEBUG:APDU Tx> (Len=22)
00 A4 04 00 10 A0 00 00 03 96 54 53 00 00 00 01
03 30 00 00 00 00
smCom :DEBUG:Enter phNxpEseProto7816_Transceive
smCom :DEBUG:Transceive data ptr 0x0x2003ff94 len:22
smCom :DEBUG:I-Frame Data Len: 22 Seq. no:0
smCom :DEBUG:TransceiveProcess nextTransceiveState 1
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=27)
5A 00 16 00 A4 04 00 10 A0 00 00 03 96 54 53 00
00 00 01 03 30 00 00 00 00 79 1C
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 4 bytes
smCom :DEBUG:RAW Rx< (Len=7)
A5 00 02 6E 00 1A 49
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x7
smCom :DEBUG:Received CRC:0x1a49 Calculated CRC:0x1a49
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x0
smCom :DEBUG:Data[0]=0x6e len=2 Data[1]=0x6e Data[0]=0x2
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=2)
6E 00
smCom :DEBUG:no lock mode
App :WARN :No SemsLite Applet Available.
hostLib:DEBUG:CloseSession command is sent only if valid Session exists!!!
smCom :DEBUG:TransceiveProcess nextTransceiveState 6
smCom :DEBUG:S-Frame PCB: c5
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=5)
5A C5 00 47 82
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:RAW Rx< (Len=5)
A5 E5 00 87 67
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x5
smCom :DEBUG:Received CRC:0x8767 Calculated CRC:0x8767
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame S-Frame Received
smCom :DEBUG:phNxpEse_close - ESE Context deinit completed
smCom :DEBUG:phPalEse_i2c_open_and_configure Opening port
smCom :DEBUG:I2C driver Initialized :: fd = [12]
smCom :DEBUG:phNxpEseProto7816_Open: First open completed
smCom :DEBUG:phNxpEse_clearReadBuffer Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 260 bytes
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:1 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:2 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:3 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:TransceiveProcess nextTransceiveState 4
smCom :DEBUG:S-Frame PCB: c0
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=5)
5A C0 00 FF FC
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:RAW Rx< (Len=5)
A5 E0 00 3F 19
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x5
smCom :DEBUG:Received CRC:0x3f19 Calculated CRC:0x3f19
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame S-Frame Received
smCom :DEBUG:TransceiveProcess nextTransceiveState 7
smCom :DEBUG:S-Frame PCB: c7
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=5)
5A C7 00 F7 B1
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 37 bytes
smCom :DEBUG:RAW Rx< (Len=40)
A5 E7 23 00 A0 00 00 03 96 04 03 E8 00 FE 02 0B
03 E8 08 01 00 00 00 00 64 00 00 0A 4A 43 4F 50
34 20 41 54 50 4F 2A 8D
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x28
smCom :DEBUG:Received CRC:0x2a8d Calculated CRC:0x2a8d
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame S-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeSFrameData frameoffset=3 value=0x0
smCom :DEBUG:Data[0]=0x0 len=35 Data[34]=0x50 Data[79]=0x23
smCom :DEBUG:no lock mode
smCom :DEBUG:APDU Tx> (Len=22)
00 A4 04 00 10 A0 00 00 03 96 54 53 00 00 00 01
03 00 00 00 00 00
smCom :DEBUG:Enter phNxpEseProto7816_Transceive
smCom :DEBUG:Transceive data ptr 0x0x2003f810 len:22
smCom :DEBUG:I-Frame Data Len: 22 Seq. no:0
smCom :DEBUG:TransceiveProcess nextTransceiveState 1
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=27)
5A 00 16 00 A4 04 00 10 A0 00 00 03 96 54 53 00
00 00 01 03 00 00 00 00 00 A8 C8
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:1 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:2 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() failed. Going to retry, counter:3 !
smCom :DEBUG:_i2c_read() error : 8
smCom :DEBUG:_i2c_read() [HDR]errno : 0 ret : FFFFFFFF
smCom :DEBUG:phNxpEse_readPacket Normal Pkt, delay read 1ms
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 11 bytes
smCom :DEBUG:RAW Rx< (Len=14)
A5 00 09 03 01 00 6F FF 01 0B 90 00 19 14
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0xe
smCom :DEBUG:Received CRC:0x1914 Calculated CRC:0x1914
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x0
smCom :DEBUG:Data[0]=0x3 len=9 Data[8]=0x90 Data[0]=0x9
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=9)
03 01 00 6F FF 01 0B 90 00
smCom :DEBUG:no lock mode
sss :INFO :atr (Len=35)
00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08
01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41
54 50 4F
sss :WARN :Communication channel is Plain.
sss :WARN :!!!Not recommended for production use.!!!
smCom :DEBUG:no lock mode
smCom :DEBUG:APDU Tx> (Len=11)
80 04 00 27 06 41 04 7F FF 02 06
smCom :DEBUG:Enter phNxpEseProto7816_Transceive
smCom :DEBUG:Transceive data ptr 0x0x2003f064 len:11
smCom :DEBUG:I-Frame Data Len: 11 Seq. no:1
smCom :DEBUG:TransceiveProcess nextTransceiveState 1
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=16)
5A 40 0B 80 04 00 27 06 41 04 7F FF 02 06 A1 C3
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 7 bytes
smCom :DEBUG:RAW Rx< (Len=10)
A5 40 05 41 01 01 90 00 DD 2F
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0xa
smCom :DEBUG:Received CRC:0xdd2f Calculated CRC:0xdd2f
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x1
smCom :DEBUG:Data[0]=0x41 len=5 Data[4]=0x90 Data[0]=0x5
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=5)
41 01 01 90 00
smCom :DEBUG:no lock mode
smCom :DEBUG:no lock mode
smCom :DEBUG:APDU Tx> (Len=19)
80 02 00 00 00 00 0A 41 04 7F FF 02 06 43 02 00
12 00 00
smCom :DEBUG:Enter phNxpEseProto7816_Transceive
smCom :DEBUG:Transceive data ptr 0x0x2003f064 len:19
smCom :DEBUG:I-Frame Data Len: 19 Seq. no:0
smCom :DEBUG:TransceiveProcess nextTransceiveState 1
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=24)
5A 00 13 80 02 00 00 00 00 0A 41 04 7F FF 02 06
43 02 00 12 00 00 CB 38
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 26 bytes
smCom :DEBUG:RAW Rx< (Len=29)
A5 00 18 41 82 00 12 04 00 50 01 DB E9 7D 68 11
87 D8 04 7F 8B DA 0F 68 80 90 00 33 7F
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x1d
smCom :DEBUG:Received CRC:0x337f Calculated CRC:0x337f
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x0
smCom :DEBUG:Data[0]=0x41 len=24 Data[23]=0x90 Data[0]=0x18
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=24)
41 82 00 12 04 00 50 01 DB E9 7D 68 11 87 D8 04
7F 8B DA 0F 68 80 90 00
smCom :DEBUG:no lock mode
App :WARN :#####################################################
App :INFO :uid (Len=18)
04 00 50 01 DB E9 7D 68 11 87 D8 04 7F 8B DA 0F
68 80
smCom :DEBUG:no lock mode
smCom :DEBUG:APDU Tx> (Len=5)
80 04 00 20 00
smCom :DEBUG:Enter phNxpEseProto7816_Transceive
smCom :DEBUG:Transceive data ptr 0x0x2003f064 len:5
smCom :DEBUG:I-Frame Data Len: 5 Seq. no:1
smCom :DEBUG:TransceiveProcess nextTransceiveState 1
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=10)
5A 40 05 80 04 00 20 00 22 93
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 15 bytes
smCom :DEBUG:RAW Rx< (Len=18)
A5 40 0D 41 82 00 07 03 01 00 6F FF 01 0B 90 00
A5 A5
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x12
smCom :DEBUG:Received CRC:0xa5a5 Calculated CRC:0xa5a5
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x1
smCom :DEBUG:Data[0]=0x41 len=13 Data[12]=0x90 Data[0]=0xd
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=13)
41 82 00 07 03 01 00 6F FF 01 0B 90 00
smCom :DEBUG:no lock mode
App :WARN :#####################################################
App :INFO :Applet Major = 3
App :INFO :Applet Minor = 1
App :INFO :Applet patch = 0
App :INFO :AppletConfig = 6FFF
App :INFO :With ECDAA
App :INFO :With ECDSA_ECDH_ECDHE
App :INFO :With EDDSA
App :INFO :With DH_MONT
App :INFO :With HMAC
App :INFO :With RSA_PLAIN
App :INFO :With RSA_CRT
App :INFO :With AES
App :INFO :With DES
App :INFO :With PBKDF
App :INFO :With TLS
App :INFO :With MIFARE
App :INFO :With I2CM
App :INFO :Internal = 010B
smCom :DEBUG:no lock mode
smCom :DEBUG:APDU Tx> (Len=5)
00 A4 04 00 00
smCom :DEBUG:Enter phNxpEseProto7816_Transceive
smCom :DEBUG:Transceive data ptr 0x0x2003fa28 len:5
smCom :DEBUG:I-Frame Data Len: 5 Seq. no:0
smCom :DEBUG:TransceiveProcess nextTransceiveState 1
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=10)
5A 00 05 00 A4 04 00 00 1E 3C
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 22 bytes
smCom :DEBUG:RAW Rx< (Len=25)
A5 00 14 6F 10 84 08 A0 00 00 01 51 00 00 00 A5
04 9F 65 01 FF 90 00 95 F6
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x19
smCom :DEBUG:Received CRC:0x95f6 Calculated CRC:0x95f6
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x0
smCom :DEBUG:Data[0]=0x6f len=20 Data[19]=0x90 Data[0]=0x14
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=20)
6F 10 84 08 A0 00 00 01 51 00 00 00 A5 04 9F 65
01 FF 90 00
smCom :DEBUG:no lock mode
smCom :DEBUG:no lock mode
smCom :DEBUG:APDU Tx> (Len=8)
80 CA 00 FE 02 DF 28 00
smCom :DEBUG:Enter phNxpEseProto7816_Transceive
smCom :DEBUG:Transceive data ptr 0x0x2003ffa0 len:8
smCom :DEBUG:I-Frame Data Len: 8 Seq. no:1
smCom :DEBUG:TransceiveProcess nextTransceiveState 1
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=13)
5A 40 08 80 CA 00 FE 02 DF 28 00 50 06
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 75 bytes
smCom :DEBUG:RAW Rx< (Len=78)
A5 40 49 FE 45 DF 28 42 01 0C 00 04 A1 F4 45 88
4F 17 E5 19 C0 69 02 08 00 00 00 00 00 00 00 01
03 18 4A 33 52 33 35 31 30 32 31 45 45 45 30 34
30 30 BC 03 04 79 33 8D 18 10 05 01 00 07 01 00
08 08 2E 5A D8 84 09 C9 BA DB 90 00 F5 D9
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x4e
smCom :DEBUG:Received CRC:0xf5d9 Calculated CRC:0xf5d9
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x1
smCom :DEBUG:Data[0]=0xfe len=73 Data[72]=0x90 Data[0]=0x49
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=73)
FE 45 DF 28 42 01 0C 00 04 A1 F4 45 88 4F 17 E5
19 C0 69 02 08 00 00 00 00 00 00 00 01 03 18 4A
33 52 33 35 31 30 32 31 45 45 45 30 34 30 30 BC
03 04 79 33 8D 18 10 05 01 00 07 01 00 08 08 2E
5A D8 84 09 C9 BA DB 90 00
smCom :DEBUG:no lock mode
App :WARN :#####################################################
App :INFO :Tag value - proprietary data 0xFE = 0xFE
App :INFO :Length of following data 0x45 = 0x45
App :INFO :Tag card identification data (Len=2)
DF 28
App :INFO :Length of card identification data = 0x42
App :INFO :Tag configuration ID (Must be 0x01) = 0x01
App :DEBUG:Length configuration ID 0x0C = 0x0C
App :INFO :Configuration ID (Len=12)
00 04 A1 F4 45 88 4F 17 E5 19 C0 69
App :INFO :OEF ID (Len=2)
A1 F4
App :INFO :Tag patch ID (Must be 0x02) = 0x02
App :DEBUG:Length patch ID 0x08 = 0x08
App :INFO :Patch ID (Len=8)
00 00 00 00 00 00 00 01
App :INFO :Tag platform build ID1 (Must be 0x03) = 0x03
App :DEBUG:Length platform build ID 0x18 = 0x18
App :INFO :Platform build ID (Len=24)
4A 33 52 33 35 31 30 32 31 45 45 45 30 34 30 30
BC 03 04 79 33 8D 18 10
App :INFO :JCOP Platform ID = J3R351021EEE0400
App :INFO :Tag FIPS mode (Must be 0x05) = 0x05
App :DEBUG:Length FIPS mode 0x01 = 0x01
App :INFO :FIPS mode var = 0x00
App :INFO :Tag pre-perso state (Must be 0x07) = 0x07
App :DEBUG:Length pre-perso state 0x01 = 0x01
App :INFO :Bit mask of pre-perso state var = 0x00
App :INFO :Tag ROM ID (Must be 0x08) = 0x08
App :DEBUG:Length ROM ID 0x08 = 0x08
App :INFO :ROM ID (Len=8)
2E 5A D8 84 09 C9 BA DB
App :INFO :Status Word (SW) (Len=2)
90 00
App :INFO :se05x_GetInfoPlainApplet Example Success !!!...
smCom :DEBUG:no lock mode
smCom :DEBUG:APDU Tx> (Len=5)
80 CA 9F 7F 00
smCom :DEBUG:Enter phNxpEseProto7816_Transceive
smCom :DEBUG:Transceive data ptr 0x0x2003ffb4 len:5
smCom :DEBUG:I-Frame Data Len: 5 Seq. no:0
smCom :DEBUG:TransceiveProcess nextTransceiveState 1
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=10)
5A 00 05 80 CA 9F 7F 00 3E 52
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 49 bytes
smCom :DEBUG:RAW Rx< (Len=52)
A5 00 2F 9F 7F 2A 47 90 D3 21 47 00 00 00 00 00
92 84 06 06 88 99 37 34 00 00 00 00 00 00 00 00
03 7F 8B 36 30 36 38 38 00 00 00 00 00 00 00 00
90 00 4B 17
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x34
smCom :DEBUG:Received CRC:0x4b17 Calculated CRC:0x4b17
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame Received
smCom :DEBUG:phNxpEseProto7816_DecodeFrame I-Frame lastRcvdIframeInfo.seqNo:0x0
smCom :DEBUG:Data[0]=0x9f len=47 Data[46]=0x90 Data[0]=0x2f
smCom :DEBUG: phNxpEse_Transceive Exit status 0x0
smCom :DEBUG:APDU Rx< (Len=47)
9F 7F 2A 47 90 D3 21 47 00 00 00 00 00 92 84 06
06 88 99 37 34 00 00 00 00 00 00 00 00 03 7F 8B
36 30 36 38 38 00 00 00 00 00 00 00 00 90 00
smCom :DEBUG:no lock mode
App :WARN :#####################################################
App :INFO :cplc_data.IC_fabricator (Len=2)
47 90
App :INFO :cplc_data.IC_type1 (Len=2)
D3 21
App :INFO :cplc_data.Operating_system_identifier (Len=2)
47 00
App :INFO :cplc_data.Operating_system_release_date (Len=2)
00 00
App :INFO :cplc_data.Operating_system_release_level (Len=2)
00 00
App :INFO :cplc_data.IC_fabrication_date (Len=2)
92 84
App :INFO :cplc_data.IC_Serial_number (Len=4)
06 06 88 99
App :INFO :cplc_data.IC_Batch_identifier (Len=2)
37 34
App :INFO :cplc_data.IC_module_fabricator (Len=2)
00 00
App :INFO :cplc_data.IC_module_packaging_date (Len=2)
00 00
App :INFO :cplc_data.ICC_manufacturer (Len=2)
00 00
App :INFO :cplc_data.IC_embedding_date (Len=2)
00 00
App :INFO :cplc_data.IC_OS_initializer (Len=2)
03 7F
App :INFO :cplc_data.IC_OS_initialization_date (Len=2)
8B 36
App :INFO :cplc_data.IC_OS_initialization_equipment (Len=4)
30 36 38 38
App :INFO :cplc_data.IC_personalizer (Len=2)
00 00
App :INFO :cplc_data.IC_personalization_date (Len=2)
00 00
App :INFO :cplc_data.IC_personalization_equipment_ID (Len=4)
00 00 00 00
App :INFO :cplc_data.SW (Len=2)
90 00
App :INFO :ex_sss Finished
hostLib:DEBUG:CloseSession command is sent only if valid Session exists!!!
smCom :DEBUG:TransceiveProcess nextTransceiveState 6
smCom :DEBUG:S-Frame PCB: c5
smCom :DEBUG:phNxpEse_WriteFrame Enter ..
smCom :DEBUG:RAW Tx> (Len=5)
5A C5 00 47 82
smCom :DEBUG:phNxpEse_read Enter ..
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:phNxpEse_readPacket Read HDR
smCom :DEBUG:phNxpEse_readPacket SOF FOUND
smCom :DEBUG:phPalEse_i2c_read Read Requested 1 bytes
smCom :DEBUG:poll_sof_chained_delay value is 0
smCom :DEBUG:phPalEse_i2c_read Read Requested 2 bytes
smCom :DEBUG:RAW Rx< (Len=5)
A5 E5 00 87 67
smCom :DEBUG:phNxpEseProto7816_ProcessResponse p_data ----> 0x20000960 len ----> 0x5
smCom :DEBUG:Received CRC:0x8767 Calculated CRC:0x8767
smCom :DEBUG:Retry Counter = 0
smCom :DEBUG:phNxpEseProto7816_DecodeFrame S-Frame Received
smCom :DEBUG:phNxpEse_close - ESE Context deinit completed

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0 Kudos
5,834 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hello @vilu ,

 

Thanks for the information! Seems the MW from your side is not the latest version, and I just tried to enable platform SCP03 with the latest version, it just works as expected. Would you please try it on your side? Please kindly refer to the following for details.

To enable platform SCP in in the i.MX RT1170 MCUXpresso SDK, please update fsl_sss_ftr.h as below:

Kan_Li_0-1662015662882.png

Kan_Li_1-1662015748579.png

Kan_Li_2-1662015788834.png

The latest version is PlugAndTrust_v04.02.00_20220630 , you may download it from https://www.nxp.com/webapp/Download?colCode=SDK-EVK-MIMXRT1170-SE05X&appType=license .

 

The log out of se05x_GetInfo is as below:

App :INFO :PlugAndTrust_v04.02.00_20220630
sss :INFO :atr (Len=35)
00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08
01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41
54 50 4F
App :WARN :No SemsLite Applet Available.
sss :INFO :atr (Len=35)
00 A0 00 00 03 96 04 03 E8 00 FE 02 0B 03 E8 08
01 00 00 00 00 64 00 00 0A 4A 43 4F 50 34 20 41
54 50 4F
App :WARN :#####################################################
App :INFO :uid (Len=18)
04 00 50 01 D2 E2 20 8F 47 C3 5B 04 77 51 DA 0F
68 80
App :WARN :#####################################################
App :INFO :Applet Major = 3
App :INFO :Applet Minor = 1
App :INFO :Applet patch = 0
App :INFO :AppletConfig = 6FFF
App :INFO :With ECDSA_ECDH_ECDHE
App :INFO :With EDDSA
App :INFO :With DH_MONT
App :INFO :With HMAC
App :INFO :With RSA_PLAIN
App :INFO :With RSA_CRT
App :INFO :With AES
App :INFO :With DES
App :INFO :With PBKDF
App :INFO :With TLS
App :INFO :With MIFARE
App :INFO :With I2CM
App :INFO :Internal = 010B
App :WARN :#####################################################
App :INFO :Tag value - proprietary data 0xFE = 0xFE
App :INFO :Length of following data 0x45 = 0x45
App :INFO :Tag card identification data (Len=2)
DF 28
App :INFO :Length of card identification data = 0x42
App :INFO :Tag configuration ID (Must be 0x01) = 0x01
App :INFO :Configuration ID (Len=12)
00 04 A1 F4 45 88 4F 17 E5 19 C0 69
App :INFO :OEF ID (Len=2)
A1 F4
App :INFO :Tag patch ID (Must be 0x02) = 0x02
App :INFO :Patch ID (Len=8)
00 00 00 00 00 00 00 01
App :INFO :Tag platform build ID1 (Must be 0x03) = 0x03
App :INFO :Platform build ID (Len=24)
4A 33 52 33 35 31 30 32 31 45 45 45 30 34 30 30
BC 03 04 79 33 8D 18 10
App :INFO :JCOP Platform ID = J3R351021EEE0400
App :INFO :Tag FIPS mode (Must be 0x05) = 0x05
App :INFO :FIPS mode var = 0x00
App :INFO :Tag pre-perso state (Must be 0x07) = 0x07
App :INFO :Bit mask of pre-perso state var = 0x00
App :INFO :Tag ROM ID (Must be 0x08) = 0x08
App :INFO :ROM ID (Len=8)
2E 5A D8 84 09 C9 BA DB
App :INFO :Status Word (SW) (Len=2)
90 00
App :INFO :se05x_GetInfoPlainApplet Example Success !!!...
App :WARN :#####################################################
App :INFO :cplc_data.IC_fabricator (Len=2)
47 90
App :INFO :cplc_data.IC_type1 (Len=2)
D3 21
App :INFO :cplc_data.Operating_system_identifier (Len=2)
47 00
App :INFO :cplc_data.Operating_system_release_date (Len=2)
00 00
App :INFO :cplc_data.Operating_system_release_level (Len=2)
00 00
App :INFO :cplc_data.IC_fabrication_date (Len=2)
92 84
App :INFO :cplc_data.IC_Serial_number (Len=4)
05 21 70 99
App :INFO :cplc_data.IC_Batch_identifier (Len=2)
37 34
App :INFO :cplc_data.IC_module_fabricator (Len=2)
00 00
App :INFO :cplc_data.IC_module_packaging_date (Len=2)
00 00
App :INFO :cplc_data.ICC_manufacturer (Len=2)
00 00
App :INFO :cplc_data.IC_embedding_date (Len=2)
00 00
App :INFO :cplc_data.IC_OS_initializer (Len=2)
03 77
App :INFO :cplc_data.IC_OS_initialization_date (Len=2)
51 35
App :INFO :cplc_data.IC_OS_initialization_equipment (Len=4)
32 31 37 30
App :INFO :cplc_data.IC_personalizer (Len=2)
00 00
App :INFO :cplc_data.IC_personalization_date (Len=2)
00 00
App :INFO :cplc_data.IC_personalization_equipment_ID (Len=4)
00 00 00 00
App :INFO :cplc_data.SW (Len=2)
90 00
App :INFO :ex_sss Finished

 

Hope that helps,

 

Have a great day,
Kan


-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

5,772 Views
vilu
Contributor II

Hi Kan,

The solution suggested works fine, now I have SCP protocol that runs leveraging on CAAM without any problems.

 

Thanks 

Vico 

0 Kudos
5,883 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi Vico,

My colleague Kan, who in charge of SE05x product will continue to support this case.

Thanks for the patience.

Mike

0 Kudos