getting invalid response when write data to file (Desfire EV2)

cancel
Showing results for 
Search instead for 
Did you mean: 

getting invalid response when write data to file (Desfire EV2)

323 Views
sivasaravanand
Contributor I

Hi Team,

After i changed the application default key to our custom key, when i write data to file, it is throwing an error "Invalid length". 

find below is the full code.


Here the line, i am getting exception
#java  desFireEV2.writeData(fileNo, 0, data);java‌

Please let me know did i miss anything.
Thanks, Shiva 2017-11-22_11-29-39.png java
0 Kudos
1 Reply

216 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Shiva,

Looks like you set the number of byte written to 0 in "desFireEV2.writeData(fileNo, 0, data);"


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos