PN7161 EVK board doesn't work with nfcdemoapp provided in starter guide

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

PN7161 EVK board doesn't work with nfcdemoapp provided in starter guide

396 Views
melf
Contributor I

Hi, 

I'm trying to get a pn7161 i2c board connected and working with the raspberry pi following the instructions provided in the starter guide, but I'm having trouble getting it to work at all. Whenever I run the nfcdemoapp it throws an error saying nfcservice init failed, leaving. I've tried running the i2cdetect -y 1 command in the terminal and no i2c device is detected. What could be the cause of the problem? 

I don't have the interface boards so I've instead connected all the i2c pins and gpio pins according to the design files, leaving out the spi and uart connections 

 

Does anybody have any suggestions? 

0 Kudos
Reply
6 Replies

44 Views
Stephan_B
Contributor I

Hello @Fabian_R 

I believe to have the same issue. Has a solution been found?

I tried to use the following NFC Development Kit: OM27160A1 and have followed the instructions in the Step-by-Step Guide from the NXP Product site. In the guide, the code form the following github repo is used https://github.com/NXPNFCLinux/linux_libnfc-nci.git -b NCI2.0_PN7160

When compiling the code, there is an compile erro:

src/service/linux_nfc_api.cpp:382:51: error: ordered comparison of pointer with integer zero ('int*' and 'int')
382 | if (ndef_buffer == NULL || ndef_buffer_length <= 0) {
| ~~~~~~~~~~~~~~~~~~~^~~~
make[1]: *** [Makefile:1920: src/service/linux_nfc_api.lo] Error 1
make[1]: Leaving directory '/home/lecc/linux_libnfc-nci'
make: *** [Makefile:895: all] Error 2

After fixing the error ( "ndef_buffer_length == NULL") the code compiles, but the program crashes like melf described. When I run "nfcDemoApp poll" the program either crashes or says that the initialization failed (depending on the raspi version i use).

Are there any known issues with this software package? Is there a fix that I was not able to finde? Or are there known issues with the hardware?

Best regards

Stephan

0 Kudos
Reply

389 Views
Fabian_R
NXP TechSupport
NXP TechSupport

Hello, my name is Fabian, I've been assigned to support your case.

Thank you for your interest in our products

Unfortunately, this isn't the correct channel for PN7161 support sir. If you could please contact your Distributor, they could help you provide a better recommendation regarding this matter.

I'm very sorry but, PN7161 is a restricted product and its support requires direct contact with a special team of engineers.

Could you please clarify why you aren't using PN7160 for your project?

Best Regards,
Fabian
0 Kudos
Reply

372 Views
melf
Contributor I

I'm using the OM27160A1 evk board because it was given to me by a post doc that works with my supervisor. I'm currently an undergrad student looking to use this device on a project. 

0 Kudos
Reply

354 Views
Fabian_R
NXP TechSupport
NXP TechSupport

Hello sir,
Does this mean that you are using a PN7160 instead of the PN7161? We do have a Linux porting guide (https://www.nxp.com/docs/en/application-note/AN13287.pdf). Could you please clarify that you have to build successfully the driver? It is possible that the host isn't able to communicate correctly with the PN7160.
My recommendation would be to please follow these steps.

Best Regards,
Fabian
0 Kudos
Reply

336 Views
melf
Contributor I

I'm using this component https://www.nxp.com/part/OM27160A1#/. Not sure if it uses pn7160 or pn7161. 

 

I'm using this starter guide https://www.nxp.com/docs/en/application-note/AN12991.pdf 

 

I've built the drivers successfuly. 

 

Since my last update, I've managed to get i2cdetect to detect the evk board, however, running the nfcdemoapp still gives the error nfcserviceinit failed 

 

Do you know if using a rpi4 vs rpi5 makes a difference? 

0 Kudos
Reply

331 Views
Fabian_R
NXP TechSupport
NXP TechSupport

Hello sir,
We don't have information regarding this issue. Could you please clarify if you can run the "linux_libnfc-nci_examples" from our git repository: https://github.com/NXPNFCLinux/linux_libnfc-nci_examples
If you could please provide a little more information we would appreciate it. The examples work in Raspbian but, it would be very helpful to know which version you are using.
Also, please clarify that you have installed the driver successfully.
If possible please share a log.

Best Regards,
Fabian
0 Kudos
Reply