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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

36 次查看
paulwitulski
Fresh Out Contributor

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 项奖励
回复
1 回复

10 次查看
KaiLi
NXP TechSupport
NXP TechSupport

Hello @paulwitulski 

Please apply the patch as attachment.

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2398427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EPN7160A%20%E5%92%8C%20linux_libnfc-nci%20%E5%9C%A8%20Raspberry%20Pi%205%202026%2064%20%E4%BD%8D%20Trixie%20%E7%B3%BB%E7%BB%9F%E4%B8%8A%E8%BF%90%E8%A1%8C%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2398427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%3C%2FP%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%B0%9D%E8%AF%95%E4%B8%BA%E5%B7%A5%E4%BD%9C%E9%A1%B9%E7%9B%AE%E5%90%AF%E5%8A%A8%20PN7160A%EF%BC%8C%E4%BD%86%E5%A7%8B%E7%BB%88%E6%97%A0%E6%B3%95%E8%AE%A9%20linux_libnfc-nci%20%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%E3%80%82%E8%AF%A5%E8%A1%A5%E4%B8%81%E5%B7%B2%E8%BF%87%E6%97%B6%EF%BC%8Clgpiod%20%E5%9C%A8%E7%89%88%E6%9C%AC%202%20%E4%B8%AD%E8%BF%9B%E8%A1%8C%E4%BA%86%E5%85%A8%E9%9D%A2%E6%94%B9%E8%BF%9B%E3%80%82%3C%2FP%3E%3CP%3E%E8%BF%98%E9%9C%80%E8%A6%81%E4%BD%BF%E7%94%A8%E6%A0%87%E5%BF%97%20sudo%20make%20install%20CFLAGS%3D%22-Wno-error%3Dimplicit-function-declaration%22%20%22%3CBR%20%2F%3E%E5%90%A6%E5%88%99%E6%88%91%E5%B0%B1%E4%BC%9A%3C%2FP%3E%3CP%3E%22demoapp%2Fmain.c%3A%E5%9C%A8%E5%87%BD%E6%95%B0%E2%80%9ConMessageReceived%E2%80%9D%E4%B8%AD%EF%BC%9A%3CBR%20%2F%3E%20demoapp%2Fmain.c%3A451%3A5%3A%E9%94%99%E8%AF%AF%EF%BC%9A%E9%9A%90%E5%BC%8F%E5%A3%B0%E6%98%8E%E5%87%BD%E6%95%B0%E2%80%9CPrintNDEFContent%E2%80%9D%20%5B-Wimplicit-function-declaration%5D%20451%20%7C%20PrintNDEFContent(NULL%2C%20NULL%2C%20message%2C%20length)%3B%3C%2FP%3E%3CP%3E%E6%88%91%E6%89%BE%E5%88%B0%E4%BA%86%202025%20%E5%B9%B4%E5%85%B3%E4%BA%8E%20PN7150%20%E7%9A%84%E4%B8%80%E7%AF%87%E6%97%A7%E5%B8%96%E5%AD%90%EF%BC%8C%E4%BD%86%E6%98%AF%E5%BD%93%E6%88%91%E5%B0%9D%E8%AF%95%E7%BC%96%E8%AF%91%E6%97%B6%EF%BC%8C%E6%88%91%E9%81%87%E5%88%B0%E4%BA%86%E5%A5%87%E6%80%AA%E7%9A%84%E9%94%99%E8%AF%AF%EF%BC%8C%E4%BE%8B%E5%A6%82%E2%80%9Cuint8_t%E2%80%9D%E6%9C%AA%E5%9C%A8%E4%BD%9C%E7%94%A8%E5%9F%9F%E4%B8%AD%E5%A3%B0%E6%98%8E%EF%BC%8C%E8%AF%B7%E4%BD%BF%E7%94%A8%20%3CCSTSTDINT%3E%E3%80%82%E6%88%91%E7%9A%84%E6%A0%91%E8%8E%93%E6%B4%BE%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E6%98%AF%E6%9C%80%E6%96%B0%E7%9A%84Trixie%20Debian%2013.6%E3%80%82%3C%2FCSTSTDINT%3E%3C%2FP%3E%3CP%3E%E9%9C%80%E8%A6%81%E4%B8%80%E4%BA%9B%E5%B8%AE%E5%8A%A9%EF%BC%8C%E8%B0%A2%E8%B0%A2%E3%80%82%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%3E%E4%BD%A0%E5%A5%BD%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%3C%2FP%3E%0A%3CP%3E%E8%AF%B7%E5%B0%86%E8%A1%A5%E4%B8%81%E4%BD%9C%E4%B8%BA%E9%99%84%E4%BB%B6%E5%BA%94%E7%94%A8%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E