This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Reading NFC tags, cannot get UID

Hello,

I'm trying to make a communication with a nrf51822 and an trf7970a nfc reader. The communication is based on SPI, I read that there are problems with softdevices enabled, so I tryed to turn it of, but it still doesn't give me wanted results. I had a check on all the pins that if they are initialized and the correct ones are picked, and the volteges droped on every pin - looks good. It looks like the spi is working, sending commands I get a NRF_SUCCESS response. But trying to get an ID of the tag, I get nonsense, after checking the memory address I get all zeros where the tag ID should be, and a uncompleted state. Did anyone have anything simmilar to this?

Parents
  • Ok, so what I found out is that trying to communicate with SPI it gets to a while cycle, that doesn't jump out. In the source file nrf_drv_spi.c it goes to while (!nrf_spi_event_check(p_spi, NRF_SPI_EVENT_READY)) {} nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY); and never jumps out. Is this a problem with the TI equipment, or is there something else with the communication?

Reply
  • Ok, so what I found out is that trying to communicate with SPI it gets to a while cycle, that doesn't jump out. In the source file nrf_drv_spi.c it goes to while (!nrf_spi_event_check(p_spi, NRF_SPI_EVENT_READY)) {} nrf_spi_event_clear(p_spi, NRF_SPI_EVENT_READY); and never jumps out. Is this a problem with the TI equipment, or is there something else with the communication?

Children
No Data
Related