The conneciton for the PN532 requires115200 baud, 8N1, which is what I'm using for my Serial connection as well. From what I've read in the manual, http://www.adafruit.com/datasheets/pn532um.pdf when I send a Firmware command frame comprised of {0x00, 0xFF, 0x02, 0xFE, 0xD4, 0x02, 0x2A }, I get no response. Not sure why this happening. However, when I hold up a MiFare (included in the package) card and then remove it, I get response of 0x00. I'm inferring that the connection is working, but I'm not sending over the right message maybe?
My code is fairly simple and i'll spare the setups for the USART0 and USART1 connections---
- Code: Select all
int main(void){
uart0_init();
uart1_init();
getFirmware(); // transmit msg for firmware to USART1 TX ---> to PN532 RX
while(1)
{
recv_nfc_data = USART1_RX(); // receive data from PN532 TX through USART1 RX
USART0_TX(recv_nfc_data); // transmit recieved data to USART0 TX which is serial to PC connection
}
I do not know why I am getting no response for such a simple command frame. Can anyone help?

