Issue on sending a 256 byte long Felica packet using PN512

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue on sending a 256 byte long Felica packet using PN512

779 Views
antonyprodigy
Contributor I

Hi

We are using PN512 as NFC reader/Writer IC in our device and there is a use case where we have to write full length Felica packets to a device that supports Felica protocol.Now as PN512 has only 64bytes hardware FIFO we tried configurable FIFO water levels as mentioned in AN108711 Application Note.We have configured SPI at max speed for PN512(10MHz).We load transceive command and load first 64 bytes of packet in FIFO and Set Start_Send bit in BIT FRAMING REGISTER to start sending data via RF.Now we check Low Level Interrupt and when it triggers we load (64-WaterLevel) number of bytes into FIFO which we does until the whole packet is finished.

WaterLevel we kept was 31(max value)

The problem here is we get WrErr(0x80) within 2 cycle of operation followed by buffer overflow Error(0x90)  in subsequent cycles.

Tags (1)
0 Kudos
1 Reply

639 Views
antonyprodigy
Contributor I

Hi,

I got the issue solved.Sharing the experience here so that it will be easy for someone new stuck with the same issue.

We had print statements inside our loop which checked for error register and CommIRQ registers.Removing those debug print statements did the thing.Since there are strict timing constraints these debug prints will take a toll on time.Check for IRQ and reload PN512 then you are good to go.

regards,

Antony Tom Mathews

0 Kudos