Hi @Kan_Li
I think you can add the following to some wiki page, because it is not just one little thing.
se05x middleware 4.5.0 on RPi4/Linux with USB reader (not T1oI2C)
1/ the reader have to be USB-CCID, and mine is using serialization:
lsusb
Bus 001 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
So, the reader above has to be replaced. You suggested Identiv uTrust 3700 F.
2/ Follow instructions for RPi T1oI2C until the folder simw-top_build/raspbian_native_se050_t1oi2c is created.
3/ Configure and Generate with cmake using -DPTMW_SMCOM=PCSC and other options as needed but do not build.
4/ Install drivers and headers and fix a bug in them:
apt-get install pcscd libpcsclite-dev
export C_INCLUDE_PATH=/usr/include/PCSC
The export is workaround for inappropriate includes in dev headers (at least in a version I got across).
5/ Fix the middleware - edit file hostlib/hostLib/libCommon/CMakeFiles/smCom.dir/link.txt to end with "-lpthread -lpcsclite" instead of current "-lpthread -lpthread".
6/ now you can cmake --build .
7/ You will need to fix or remove C code in simw-top/demos/se05x/se05x_MultiThread/se05x_multithreaded_demo_task.c to cleanly finalize the build.