Problems reading NFC card using PN532 (SPI)

General project help for Adafruit customers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Zubenelgenubi
 
Posts: 9
Joined: Sat Feb 07, 2015 4:38 pm

Problems reading NFC card using PN532 (SPI)

Post by Zubenelgenubi »

I recently purchased a PN532 breakout board. I'm using the PN532 code from github, but I'm having some troubles writing to the cards I have.

I ran the readMifareClassic code and it seemed to read the card just fine. But, when I run the formatndef program, it keeps giving me this error:

Code: Select all

Seems to be a Mifare Classic card (4 byte UID)
Unable to authenticate block 0 to enable card formatting!
Found an ISO14443A card
  UID Length: 4 bytes
  UID Value: 0x7F 0xF5 0xB2 0x00
There is one thing I didn't do the same as the tutorial - instead of using the level shifter, I just connected the PN532 breakout board using the 5V instead of the 3.3V (space considerations, wanted a tighter package). It seems to connect fine, and I never get any errors connecting to it.

I haven't changed the example code at all. Can anyone help me out?

Locked
Please be positive and constructive with your questions and comments.

Return to “General Project help”