Can we use PN7160 NFC Reader instead of PN532 Adafruit NFC Reader

Hello,

In my project, I want to use PN7160 NFC Reader instead of PN532 NFC Reader because in nRF SDK had a library for PN532 but the library is comfortable for PN7160 or not .??

Yes, i can go for PN532 also but they are not recommended for a new design by anybody. So Please let us know if it's comfortable or not.??

Thank You.

  • Hello,

    In st25r3911  in  dev kit on board mounted crystal is  available  and i did some spi initialization but our master  nrf52832 couldn't find any slave device.

    #include "zephyr/kernel.h"
    #include "zephyr/drivers/gpio.h"
    #include "zephyr/drivers/spi.h"
    #include "string.h"
    
    struct device *spi_dev;
    static const struct spi_config spi_cfg = {
        .operation = SPI_OP_MODE_MASTER | SPI_WORD_SET(8) | SPI_TRANSFER_MSB |
                 SPI_MODE_CPOL | SPI_MODE_CPHA,
        .frequency = 4000000,
        //.slave = 0,
    };
    
    static void spi_init(void)
    {
    	char* const spiName = "SPI_0";
    	spi_dev = device_get_binding(spiName);
    	printk("spidev:%d\r\n",spi_dev);
    
    	if (spi_dev == NULL) {
    		printk("Could not get %s device\n", spiName);
    		return;
    	}
    	else
    	{
    		printk("got %s device\n", spiName);
    	}
    	
    }
     

    this is code for initialization but no luck.

    Thank You.

  • Hello,

    Waiting for your response..!!.

    Thank You

  • Is the application still failing with an error code -6 in the osc_start(); function of st25r3911_common.c file or somewhere else now? If you can upload the log information that will help more than this snippet of code. 

    If you have an oscilloscope available you can also do a scope trace on the SPI pins you're using as well as the lines from the ST25 to the oscillator to see that these lines are behaving as expected.

    Best regards,

    Simon

  • Hello,

    Is the application still failing with an error code -6 in the osc_start(); function of st25r3911_common.c file or somewhere else now?

    Yes.

    If you have an oscilloscope available you can also do a scope trace on the SPI pins you're using as well as the lines from the ST25 to the oscillator to see that these lines are behaving as expected.

    Best regards,

    Yes, for that purpose only i am doing spi loopback test with a logic analyzer.

    and i didn't get any clock cycles with nrf52832 and ST25.

    and even nrf connect SDK APIs are a little changed compared to nrf5 sdk so I couldn't check spi loopback test also.

    if you have any spi loop back test examples please share them with me. then at least i can make sure that communication happening properly.

    Thank You.

  • Hello,

    Here, one more doubt i have is previously using nrf5 sdk and now using nrf connect sdk with windows so its not zephyr RTOS right.??

    Because all examples are with a zephyr folder like blinky. button etc, so i am confused.

    is this ok in my case to use normal nrf connect sdk other than RTOS and please let me know is there are any SPI examples to use because SPI configuration and peripheral enabling is more complex than nrf5 sdk.

    Thank You.

Related