Hi @Kan_Li ,
For SE050C2HQ1
The cmake option is below:
EXTRA_OECMAKE += "\
-DCMAKE_BUILD_TYPE=Debug \
-DPTMW_SE05X_Ver=03_XX \
-DPTMW_Applet=SE05X_C \
-DPTMW_Host=iMXLinux \
-DPTMW_HostCrypto=OPENSSL \
-DPTMW_SMCOM=T1oI2C \
-DPTMW_FIPS=None \
-DPTMW_SCP=None \
-DSSSFTR_SE05X_RSA=1 \
-DPTMW_SE05X_Auth=None \
"
get error of :
warning: 'EC_KEY_****' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
need to set -DSS'SFTR_SE05X_RSA=0' which is not the same as table6.

But result is pass:
$ EX_SSS_BOOT_SSS_PORT=/dev/i2c-1:0x48 ./se05x_Minimal
App :INFO :PlugAndTrust_v04.02.00_20220524
App :INFO :Running ./se05x_Minimal
App :INFO :Using PortName='/dev/i2c-1:0x48' (ENV: EX_SSS_BOOT_SSS_PORT=/dev/i2c-1:0x48)
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.!!!
App :INFO :mem=32196
App :INFO :se05x_Minimal Example Success !!!...
App :INFO :ex_sss Finished
For SE050F2HQ1:
cmake option:
EXTRA_OECMAKE += "\
-DCMAKE_BUILD_TYPE=Debug \
-DPTMW_SE05X_Ver=03_XX \
-DPTMW_Applet=SE05X_C \
-DPTMW_Host=iMXLinux \
-DPTMW_HostCrypto=OPENSSL \
-DPTMW_SMCOM=T1oI2C \
-DPTMW_FIPS=SE050 \
-DPTMW_SCP=SCP03_SSS \
-DSSSFTR_SE05X_RSA=0 \
-DPTMW_SE05X_Auth=PlatfSCP03 \
"
(p.s. '-DSSSFTR_SE05X_RSA=0' because of the compile warning above.)
The result is failed:
$ EX_SSS_BOOT_SSS_PORT=/dev/i2c-1:0x48 /run/media/sda1/se05x_Minimal
App :INFO :PlugAndTrust_v04.02.00_20220524
App :INFO :Running /run/media/sda1/se05x_Minimal
App :INFO :Using PortName='/dev/i2c-1:0x48' (ENV: EX_SSS_BOOT_SSS_PORT=/dev/i2c-1:0x48)
App :INFO :Using default PlatfSCP03 keys. You can use keys from file using ENV=EX_SSS_BOOT_SCP03_PATH
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
scp :WARN :nxEnsure:'status == kStatus_SSS_Success' failed. At Line:144 Function:nxScp03_AuthenticateChannel
sss :ERROR:Could not set SCP03 Secure Channel
App :ERROR:sss_session_open failed
App :ERROR:ex_sss_session_open Failed
App :ERROR:!ERROR! ret != 0.
But the error listed below is gone:
sss :WARN :Communication channel is Plain.
sss :WARN :!!!Not recommended for production use.!!!
sss :WARN :nxEnsure:'ret == SM_OK' failed. At Line:6971 Function:sss_se05x_TXn
App :ERROR:Se05x_API_GetFreeMemory Failed