OM27160A1HN in Linux '. /nfcDemoApp' failed based on document AN13287

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

OM27160A1HN in Linux '. /nfcDemoApp' failed based on document AN13287

478 Views
Kane_1024
Contributor I

Hello,

Sorry, I am a newbie, I have a PN7160 module is OM27160A1HN, I follow the document AN13287, from '4.2 Alternative to nxpnfc kernel driver', at first it is smooth, no error in Linux, but when I run to '. /nfcDemoApp poll' when there is this error, I'm not quite sure what causes this

l_i_0-1684807961024.png

But I run '. /nfcDemoApp --help' is OK

l_i_1-1684808035589.png

 

 

If you can help me, I would be very grateful!

 

 

0 Kudos
3 Replies

443 Views
danielchen
NXP TechSupport
NXP TechSupport

HI @Kane_1024 

I would suggest you refer to below step-by-step guide on how to run NFC on Raspberry Pi platform.

https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Easy-set-up-of-NFC-on-Raspberry-Pi/ta-p/1099...

 

Regards

Daniel

 

 

Regards

Daniel

0 Kudos

422 Views
Kane_1024
Contributor I

Hi Daniel,

Thanks for your answer, I followed https://community.nxp.com/t5/NXP-Designs-Knowledge-Base/Easy-set-up-of-NFC-on-Raspberry-Pi/ta-p/1099... but I still get the same error as follows:

#########################################################################################
## NFC demo ##
#########################################################################################
## Poll mode activated ##
#########################################################################################
... press enter to quit ...

terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr: __pos (which is 4294967296) > this->size() (which is 2)
Aborted

 

By the way, I cloned 'git clone https://github.com/NXPNFCLinux/linux_libnfc-nci.git -b NCI2.0_PN7160'

 

Is there any solution?Thanks.

 

BR,

0 Kudos

277 Views
Casper_Hsu
Contributor I
I also encountered the same problem, but it can be solved using a 32-bit operating system
0 Kudos