简体   繁体   English

在Desfire EV1卡中创建标准数据文件时,出现0x0E错误

[英]When I create standard data file in Desfire EV1 card, I get 0x0E error

  • I'm using Desfire EV1 8K card. 我正在使用Desfire EV1 8K卡。 I create 10 applications inside it and create multiple files in that applications successfully. 我在其中创建了10个应用程序,并在该应用程序中成功创建了多个文件。
  • When I try to create first file of size 250 bytes in last application, it gives error 0x0E. 当我尝试在最后一个应用程序中创建第一个大小为250字节的文件时,它给出错误0x0E。 But if I count total file sizes of previously created files, it's 6100 bytes. 但是,如果我算一下以前创建的文件的总文件大小,则为6100字节。
  • It means I have still 2092 (=8192(8KB)-6100) bytes to use for file. 这意味着我还有2092(= 8192(8KB)-6100)个字节可用于文件。 Please guide where I'm wrong. 请指导我错了。
  • APDU command: CD 00 03 1111 FA0000 APDU命令:CD 00 03 1111 FA0000
  • Response: 0x0E (OUT_OF_EEPROM_ERROR) 响应:0x0E(OUT_OF_EEPROM_ERROR)

您是否在计算中考虑过创建应用程序会产生一些开销,例如文件结构,但主要是每个应用程序的14个键?

I got the answer. 我得到了答案。 If I check the FreeMemory of the card, I get the 0 bytes. 如果我检查卡的FreeMemory,则会得到0个字节。 The misunderstanding is, I was only calculating file sizes, but if I calculate the key bytes per application, the card is full with no memory left inside. 误会是,我只计算文件大小,但是如果我计算每个应用程序的密钥字节,则存储卡已满,内部没有任何内存。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM