在使用PN7160调试过程中,已确定I2C调通,但是读卡无响应,以下为相关log:
12-05 15:45:56.600 1221 4662 E libnfc_nci: [ERROR:nci_hrcv.cc(305)] unknown opcode:0x23
12-05 15:45:56.600 280 4656 D NxpTml : PN54X - Invoking I2C Read.....
12-05 15:45:57.093 280 4656 E NxpTml : Read _>>>>> Empty packet recieved !!
12-05 15:45:57.093 280 4656 D NxpTml : PN54X - I2C Read successful.....
12-05 15:45:57.093 280 4656 D NxpNciR : len = 3 > 612100
12-05 15:45:57.094 280 4656 D NxpTml : PN54X - Posting read message.....
12-05 15:45:57.094 280 4659 D NxpHal : read successful status = 0x0
12-05 15:45:57.094 280 4659 D NfccPowerTracker: NfccPowerTracker::ProcessNtf: Enter
12-05 15:45:57.095 1221 4662 I libnfc_nci: [INFO:nfc_ncif.cc(501)] NFC received ntf gid:1
12-05 15:45:57.095 280 4656 D NxpTml : PN54X - Read requested.....
12-05 15:45:57.095 280 4656 D NxpTml : PN54X - Invoking I2C Read.....
12-05 15:45:57.095 1221 4662 E libnfc_nci: [ERROR:nci_hrcv.cc(305)] unknown opcode:0x21
12-05 15:45:57.096 280 4656 E NxpTml : Read _>>>>> Empty packet recieved !!
12-05 15:45:57.096 280 4656 D NxpTml : PN54X - I2C Read successful.....
12-05 15:45:57.096 280 4656 D NxpNciR : len = 3 > 612300
12-05 15:45:57.096 280 4656 D NxpTml : PN54X - Posting read message.....
12-05 15:45:57.097 280 4659 D NxpHal : read successful status = 0x0
12-05 15:45:57.097 280 4659 D NfccPowerTracker: NfccPowerTracker::ProcessNtf: Enter
12-05 15:45:57.098 1221 4662 I libnfc_nci: [INFO:nfc_ncif.cc(501)] NFC received ntf gid:1
12-05 15:45:57.098 280 4656 D NxpTml : PN54X - Read requested.....
12-05 15:45:57.098 280 4656 D NxpTml : PN54X - Invoking I2C Read.....
12-05 15:45:57.098 1221 4662 E libnfc_nci: [ERROR:nci_hrcv.cc(305)] unknown opcode:0x23
是否可以协助分析下是相关流程存在问题还是其他原因呢?
已解决! 转到解答。
which system clock source you are using? PLL or XTAL? This configuration is in file libnfc-nxp.conf
Hello chenyuansen,
What power supply are you using for VUP?
Can you check the following AN -> https://www.nxp.com/docs/en/application-note/AN13892.pdf , please?
Especially page 19 -> TXLDO check
BR
Tomas
是按照AN13189, PN7160 Android Porting Guider来移植的吗? i2c驱动是 https://github.com/NXPNFCLinux/nxpnfc 吗?
03-12 16:48:06.856 1248 1453 I libnfc_nci: [INFO:nfc_ncif.cc(815)] NFC received ntf gid:1
03-12 16:48:06.857 1248 1453 E libnfc_nci: [ERROR:nci_hrcv.cc(336)] unknown opcode:0x23
03-12 16:48:06.857 326 1455 D NxpTml : PN54X - Read requested.....
03-12 16:48:06.858 326 1455 D NxpTml : PN54X - Invoking I2C Read.....
01-18 08:00:48.215 1455 1455 W pn544_dev_read: reading 3 bytes.
01-18 08:00:48.215 1455 1455 W pn544_dev_read: block in reading.
03-12 16:48:07.138 485 516 W libprocessgroup: Failed to open /dev/stune/background/cgroup.procs: No such file or directory
01-18 08:00:48.709 0 0 W : [ C0] pn544 irq enter ----
01-18 08:00:48.709 1455 1455 W pn544_dev_read: Wakeup form irq.
01-18 08:00:48.709 1455 1455 W pn544_dev_read: start i2c transfer.
03-12 16:48:07.353 326 1455 E NxpTml : _>>>>> Empty packet recieved !!
03-12 16:48:07.353 326 1455 D NxpTml : PN54X - I2C Read successful.....len = 3
03-12 16:48:07.353 326 1455 D NxpTml : PN54X - Posting read message.....
03-12 16:48:07.353 326 1455 D NxpNciR : len = 3 <= 612300
03-12 16:48:07.353 326 1458 D NxpHal : read successful status = 0x0
03-12 16:48:07.355 326 1455 D NxpTml : PN54X - Read requested.....
03-12 16:48:07.355 326 1455 D NxpTml : PN54X - Invoking I2C Read.....
01-18 08:00:48.710 1455 1455 W IFD->PC :
01-18 08:00:48.710 1455 1455 W : 61
01-18 08:00:48.710 1455 1455 W : 23
01-18 08:00:48.710 1455 1455 W : 00
01-18 08:00:48.712 1455 1455 W pn544_dev_read: reading 3 bytes.
03-12 16:48:07.355 1248 1453 I libnfc_nci: [INFO:nfc_ncif.cc(815)] NFC received ntf gid:1
01-18 08:00:48.712 1455 1455 W pn544_dev_read: block in reading.
03-12 16:48:07.357 1248 1453 E libnfc_nci: [ERROR:nci_hrcv.cc(336)] unknown opcode:0x23
Hello @全林林 ,
Please check the following document -> https://www.nxp.com/docs/en/application-note/AN13892.pdf
Especially chapter 9 ->TXLDO check
BR
Tomas
Hi @chenyuansen
From your log, RF_PLL_UNLOCKED_NTF, it implies the clock source configuration not right. please double check the clock configuration.
Regards
Daniel