Hi everyone,
I am currently working on a project using the SE050C2 secure element alongside an ESP32. I am using ESP-IDF and the Plug and Trust middleware.
I am trying to enable Platform SCP03 authentication. According to the middleware, the default OEF keys for the SE050C2 variant are already defined in the headers.
I have configured my firmware to use these exact keys. However, when I try to open a session, the SCP03 authentication fails, and I get a MAC verification error 7042.
It seems the keys expected by my application do not match the keys physically present inside the chip.
I have a few questions regarding this issue:
Are the default middleware keys correct for this specific chip version?
If this chip is part of a development board, is it possible that it comes pre-provisioned with different keys like DEVKIT A1F4 keys or standard test keys?
Is there a safe way to identify the actual SCP03 keys on my chip, or a procedure to reset them if they were inadvertently changed?
Any guidance on how to resolve this issue would be greatly appreciated.
Thank you
MAC verification error 7042 seems to be confused to understand, can you share more log information?
Please check below for OEF ID read tools setting:
======================================
10.7 How to get SE Platform Information and UID
Follow any one of the following methods to get the SE platform information.
10.7.1 Using TeraTerm and pre-built binary
A pre-built binary for se05x_GetInfo is available in binaries directory for FRDM-K64F and iMX-RT1060.
You would need to install a serial terminal application, like TeraTerm.
• Install TeraTerm on your system. To setup TeraTerm, refer
• Flash the pre-built binary on your hardware.
• View the logs on TeraTerm.
The highlighted log is the SE UID, OEF ID and JCOP Platform ID.
10.7.2 Using VCOM and binary
Plug & Trust MW Documentation
• Flash VCOM binary present in binaries directory accorfing to your board.
• Check VCOM Port number in device manager.
• Build project se05x_GetInfo with the following configuration:– SMCOM: VCOM– Host: PCWindows
• Run the built binary as:
se05x_GetInfo.exe COMxx
Where COMxx is the VCOM port number obtained from step 2.
The highlighted log is the SE UID, OEF ID and JCOP Platform ID
10.7.3 Using ssscli Tool
Plug & Trust MW Documentation
• Flash VCOM binary present in binaries directory accorfing to your board.
• Check VCOM Port number in device manager.
• Run the following commands in binaries/PCWindows/ssscli directory:
ssscli.exe connect se050 vcom COMxx
ssscli.exe se05x uid
ssscli.exe disconnect
Where COMxx is the VCOM Port number obtained in step 2.
The highlighted log is the SE UID
Please check below for default key of SE050C2. If you report MAC error, can you check the key value for your application? How may bit difference to cause this MAC verification error 7042
db16122_0-1787634676992.pngdb16122_0-1787634676992.png