Error when creating an EF under MF on smart card

Thread Starter


Joined May 13, 2024
I am new to ISO 7816 smart card programming. I am trying to create an EF under the MF. I can succesfully select the MF but there is an error creating the EF. These are the APDUs and responses.

Screenshot from 2024-05-12 17-48-24.png
00 A4 00 00 02 3F 00 is for selecting the MF and 00 E0 00 00 09 62 07 82 01 01 83 02 3F 01 is for creating an EF. The latter command is returning the error 6A 80 : Wrong parameter(s) P1-P2. Incorrect parameters in the data field. I cannot figure out what is the error in the data field.