don / NDEF

NDEF Library for Arduino. Read and Write NDEF Messages to NFC tags with Arduino.
Other
286 stars 142 forks source link

MifareClassic.cpp "Read failed" out of memory #65

Closed XamBacker closed 3 years ago

XamBacker commented 3 years ago

I get "Read failed" debug message or "Error. Block Authentication failed for" when NFC tag quickly removed from PN532 and UNO or MEGA duino crashes or freezes caused out of memory. Before that Serial monitor print wrong symbols in one string first shows russian (cyrillic) symbol "р" and after that only unprintable symbols. I see there should be some Errors handlers but no idea how to limit the length of ndef message that causing crashes. It happens on ReadTagExtended example.

Please, help with Errors handlers in MifareClassic.cpp https://github.com/don/NDEF/pull/50 fix this at all.