I have a RFID PN532 module with SPI and i tested it with arduino using Adafruit_PN532 library, it works ok. I'm using these pins:
Code: Select all
#define PN532_SCK 13
#define PN532_MOSI 11
#define PN532_SS 16
#define PN532_MISO 12
Adafruit_PN532 nfc(PN532_SCK, PN532_MISO, PN532_MOSI, PN532_SS);
Code: Select all
#define PN532_SCK PA5
#define PN532_MOSI PA7
#define PN532_SS PA4
#define PN532_MISO PA6
Adafruit_PN532 nfc(PN532_SCK, PN532_MISO, PN532_MOSI, PN532_SS);
Code: Select all
nfc.begin();
uint32_t versiondata = nfc.getFirmwareVersion();
if (! versiondata) {
Serial.print("Didn't find PN53x board");
while (1); // halt
}
Any idea?