PN7160A and linux_libnfc-nci on Raspberry Pi 5 2026 64-bit Trixie

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

PN7160A and linux_libnfc-nci on Raspberry Pi 5 2026 64-bit Trixie

40 Views
paulwitulski
Contributor I

Hello,

I am trying to bring up a PN7160A for a work project and cannot manage to get any attempt of linux_libnfc-nci to work. The patch is obsolete, lgpiod had a overhaul going to version 2.

Also have to use flag sudo make install CFLAGS="-Wno-error=implicit-function-declaration" "
otherwise I get

"demoapp/main.c: In function ‘onMessageReceived’:
demoapp/main.c:451:5: error: implicit declaration of function ‘PrintNDEFContent’ [-Wimplicit-function-declaration] 451 | PrintNDEFContent(NULL, NULL, message, length);"

I found an old post in 2025 for a PN7150 but when I try to compile I get strange errors such as 'uint8_t' not declared in scope, use <cststdint>. I have the newest Raspberry Pi OS, Trixie Debian 13.6.

Looking for some help, thank you.

 

0 Kudos
Reply
1 Reply

14 Views
KaiLi
NXP TechSupport
NXP TechSupport

Hello @paulwitulski 

Please apply the patch as attachment.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2398427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPN7160A%20and%20%20linux_libnfc-nci%20on%20Raspberry%20Pi%205%202026%2064-bit%20Trixie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2398427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20bring%20up%20a%20PN7160A%20for%20a%20work%20project%20and%20cannot%20manage%20to%20get%20any%20attempt%20of%26nbsp%3Blinux_libnfc-nci%20to%20work.%20The%20patch%20is%20obsolete%2C%20lgpiod%20had%20a%20overhaul%20going%20to%20version%202.%3C%2FP%3E%3CP%3EAlso%20have%20to%20use%20flag%26nbsp%3Bsudo%20make%20install%20CFLAGS%3D%22-Wno-error%3Dimplicit-function-declaration%22%20%22%3CBR%20%2F%3Eotherwise%20I%20get%3C%2FP%3E%3CP%3E%22demoapp%2Fmain.c%3A%20In%20function%20%E2%80%98onMessageReceived%E2%80%99%3A%3CBR%20%2F%3Edemoapp%2Fmain.c%3A451%3A5%3A%20error%3A%20implicit%20declaration%20of%20function%20%E2%80%98PrintNDEFContent%E2%80%99%20%5B-Wimplicit-function-declaration%5D%20451%20%7C%20PrintNDEFContent(NULL%2C%20NULL%2C%20message%2C%20length)%3B%22%3C%2FP%3E%3CP%3EI%20found%20an%20old%20post%20in%202025%20for%20a%20PN7150%20but%20when%20I%20try%20to%20compile%20I%20get%20strange%20errors%20such%20as%20'uint8_t'%20not%20declared%20in%20scope%2C%20use%20%3CCSTSTDINT%3E.%20I%20have%20the%20newest%20Raspberry%20Pi%20OS%2C%20Trixie%20Debian%2013.6.%3C%2FCSTSTDINT%3E%3C%2FP%3E%3CP%3ELooking%20for%20some%20help%2C%20thank%20you.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2398545%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20PN7160A%20and%20%20linux_libnfc-nci%20on%20Raspberry%20Pi%205%202026%2064-bit%20Trixie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2398545%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F264981%22%20target%3D%22_blank%22%3E%40paulwitulski%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20apply%20the%20patch%20as%20attachment.%3C%2FP%3E%3C%2FLINGO-BODY%3E