PN7160 can't reset

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

PN7160 can't reset

1,988 Views
jiafangguo
Contributor III

Hi,

We are trying to bring up OM27160A1HN on our board.

root@qrb5165-rb5:/# uname -a
Linux qrb5165-rb5 5.4.249 #1 SMP PREEMPT Tue Apr 23 01:06:41 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
root@qrb5165-rb5:/#

But when something goes wrong, PN7160 reset doesn't work. The whole log file and conf file are in the attachment.

Thanks,

 

0 Kudos
Reply
6 Replies

1,076 Views
andraz_skupek
NXP Employee
NXP Employee

Hi @jiafangguo,

what is the kernel version on your linux device?

Best regards,

Andraz

0 Kudos
Reply

1,375 Views
michael_d_1983
Contributor I

Hello jiafangguo,

Were you able to find out anything during the PN7160 reset?

We have exactly the same problem, which can be reproduced in endurance tests. As soon as something goes wrong, the application crashes and can only be restarted after a power reset.

nfc_spi_read: err wakeup of wq
Aborted

Michael

0 Kudos
Reply

1,303 Views
jiafangguo
Contributor III
No. And IRQ is high during and after reset even I don't lunch any application.
0 Kudos
Reply

1,163 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi @jiafangguo :

 

Could you please let me know more details about this issue, can this issue be reproduced in my side with EVK board? if yes, how?  Which tag you are using?

 

Regards

Daniel

0 Kudos
Reply

1,980 Views
jiafangguo
Contributor III

I tried to manually reset by:

set ven_gpio to 1

sleep 10 seconds

set ven_gpio to 0

sleep 100 seconds

set ven_gpio to 1

Then, run:

root@qrb5165-rb5:/data/nfc_factory# ./NfcFactoryTestApp

----------------------------
NFC Factory Test Application
----------------------------
open /dev/nxpnfc: 3
open /dev/nxpnfc
(tml_reset)(45)cmd: 0x4008e901
(tml_transceive)(104)
len->4: handle:3 0x20 0x0 0x1 0x1
(tml_send)(62) retry
(tml_send)(66) write failed
(tml_transceive)(104)
len->4: handle:3 0x20 0x0 0x1 0x1
(tml_send)(62) retry
(tml_send)(66) write failed
(tml_transceive)(104)
len->3: handle:3 0x20 0x1 0x0
(tml_send)(62) retry
(tml_send)(66) write failed
Error communicating with PN71xx NFC Controller
Error communicating with the NFC Controller
root@qrb5165-rb5:/data/nfc_factory#
root@qrb5165-rb5:/data/nfc_factory#

Can't communicate with PN7160 NFC Controller.

Thanks

 

0 Kudos
Reply

1,976 Views
jiafangguo
Contributor III

After above failure, tried to re-lunch the app, will fail. I have to power off my device to make nfcDemoApp  work again.

root@qrb5165-rb5:/# nfcDemoApp poll
#########################################################################################
## NFC demo ##
#########################################################################################
## Poll mode activated ##
#########################################################################################
... press enter to quit ...

2024:04:23-02:30:36.985 find found NXPLOG_TML_LOGLEVEL=(0x0)
2024:04:23-02:30:36.985 GetNxpNumValue: NXP Config Parameter : NXPLOG_TML_LOGLEVEL=(0x0)
2024:04:23-02:30:36.986 find found NXPLOG_FWDNLD_LOGLEVEL=(0x3)
2024:04:23-02:30:36.986 GetNxpNumValue: NXP Config Parameter : NXPLOG_FWDNLD_LOGLEVEL=(0x3)
2024:04:23-02:30:36.986 find found NXPLOG_NCIX_LOGLEVEL=(0x3)
2024:04:23-02:30:36.986 GetNxpNumValue: NXP Config Parameter : NXPLOG_NCIX_LOGLEVEL=(0x3)
2024:04:23-02:30:36.986 find found NXPLOG_NCIR_LOGLEVEL=(0x3)
2024:04:23-02:30:36.987 GetNxpNumValue: NXP Config Parameter : NXPLOG_NCIR_LOGLEVEL=(0x3)
2024:04:23-02:30:36.988 initializeGlobalDebugEnabledFlag: level=1
2024:04:23-02:30:36.988 initializeGlobalDebugEnabledFlag: level=1
2024:04:23-02:30:36.988 readConfig Opened base config /usr/local/etc/libnfc-nci.conf
2024:04:23-02:30:36.989 NfcAdaptation::Initialize: Overriding NFA_EE_MAX_EE_SUPPORTED to use 1
2024:04:23-02:30:36.989 verify_stack_non_volatile_store
2024:04:23-02:30:36.989 crcChecksumVerifyIntegrity: filename=/nfaStorage.bin1
2024:04:23-02:30:36.990 crcChecksumVerifyIntegrity: filename=/nfaStorage.bin4
2024:04:23-02:30:36.990 crcChecksumVerifyIntegrity: filename=/nfaStorage.bin2
2024:04:23-02:30:36.990 crcChecksumVerifyIntegrity: filename=/nfaStorage.bin3
2024:04:23-02:30:36.990 crcChecksumVerifyIntegrity: filename=/nfaStorage.bin5
2024:04:23-02:30:36.990 Initialize: preserve stack NV store
2024:04:23-02:30:36.991 GKI_create_task func=0x0x7f9b688140 id=4 name=NFCA_TASK stack=0x(nil) stackSize=0
2024:04:23-02:30:36.991 GKI creating task 4, pCond/pMutex=(nil)/(nil)
2024:04:23-02:30:36.991 Leaving GKI_create_task 0x7f9b688140 4 7f9a91e1c0 NFCA_TASK (nil) 0
2024:04:23-02:30:36.991 GKI_create_task func=0x0x7f9b689740 id=0 name=NFCA_THREAD stack=0x(nil) stackSize=0
2024:04:23-02:30:36.991 GKI creating task 0, pCond/pMutex=(nil)/(nil)
2024:04:23-02:30:36.992 gki_task_entry task_id=4, thread_id=7f9a91e1c0/7f9a91e1c0, pCond/pMutex=(nil)/(nil)
2024:04:23-02:30:36.992 NfcAdaptation::NFCA_TASK: enter
2024:04:23-02:30:36.992 GKI_run enter
2024:04:23-02:30:36.992 Start/Stop GKI_timer_update_registered!
2024:04:23-02:30:36.992 GKI_run, run_cond(0x7f9b75d888)=1
2024:04:23-02:30:36.992 Leaving GKI_create_task 0x7f9b689740 0 7f9a11d1c0 NFCA_THREAD (nil) 0
2024:04:23-02:30:36.992 gki_task_entry task_id=0, thread_id=7f9a11d1c0/7f9a11d1c0, pCond/pMutex=(nil)/(nil)
2024:04:23-02:30:36.993 NfcAdaptation::Thread: enter
2024:04:23-02:30:36.993 GKI_create_task func=0x0x7f9b646198 id=3 name=NFC_TASK stack=0x(nil) stackSize=0
2024:04:23-02:30:36.993 GKI creating task 3, pCond/pMutex=0x7f9a11c8c8/0x7f9a11c898
2024:04:23-02:30:36.993 Leaving GKI_create_task 0x7f9b646198 3 7f9991c1c0 NFC_TASK (nil) 0
2024:04:23-02:30:36.993 gki_task_entry task_id=3, thread_id=7f9991c1c0/7f9991c1c0, pCond/pMutex=0x7f9a11c8c8/0x7f9a11c898
2024:04:23-02:30:36.993 NFC_TASK started.
2024:04:23-02:30:36.993 GKI_wait task=3, pCond/pMutex = 0x7f9a11c8c8/0x7f9a11c898
2024:04:23-02:30:36.993 GKI_exit_task 0 done
2024:04:23-02:30:36.993 NfcAdaptation::Thread: exit
2024:04:23-02:30:36.993 gki_task task_id=0 terminating
2024:04:23-02:30:36.993 NfcAdaptation::Initialize: exit
2024:04:23-02:30:36.993 NFA_Init
2024:04:23-02:30:36.994 nfa_dm_init
2024:04:23-02:30:36.994 id=1, enable_cplt_mask=0x0
2024:04:23-02:30:36.994 nfa_p2p_init
2024:04:23-02:30:36.994 id=3, enable_cplt_mask=0x8
2024:04:23-02:30:36.994 Nfc: nfa_snep_init (): is_dta_mode=0
2024:04:23-02:30:36.994 Nfc: nfa_snep_default_init ()
2024:04:23-02:30:36.994 id=4, enable_cplt_mask=0x18
2024:04:23-02:30:36.994 nfa_rw_init
2024:04:23-02:30:36.994 id=5, enable_cplt_mask=0x38
2024:04:23-02:30:36.994 nfa_ce_init
2024:04:23-02:30:36.994 id=6, enable_cplt_mask=0x78
2024:04:23-02:30:36.994 nfa_ee_init
2024:04:23-02:30:36.994 id=2, enable_cplt_mask=0x7c
2024:04:23-02:30:36.994 nfa_t4tnfcee_init
2024:04:23-02:30:36.994 find found NXP_T4T_NFCEE_ENABLE=(0x1)
2024:04:23-02:30:36.994 GetNxpNumValue: NXP Config Parameter : NXP_T4T_NFCEE_ENABLE=(0x1)
2024:04:23-02:30:36.994 id=9, enable_cplt_mask=0x27c
2024:04:23-02:30:36.994 llcp_init
2024:04:23-02:30:36.995 num_rx_buff = 9, rx_congest_start = 6, rx_congest_end = 4, max_num_ll_rx_buff = 2
2024:04:23-02:30:36.995 max_num_tx_buff = 21, max_num_ll_tx_buff = 6
2024:04:23-02:30:36.995 SAP:0x1, link_type:0x2, ServiceName:<urn:nfc:sn:sdp>
2024:04:23-02:30:36.995 Registered SAP = 0x01
2024:04:23-02:30:36.995 NFA_Enable
2024:04:23-02:30:36.995 NFA got event 0x0100
2024:04:23-02:30:36.995 event: NFA_DM_API_ENABLE_EVT (0x00)
2024:04:23-02:30:36.995 nfa_dm_enable
2024:04:23-02:30:36.995 NFC_Enable
2024:04:23-02:30:36.995 nfc_set_state 0 (NONE)->1 (W4_HAL_OPEN)
2024:04:23-02:30:36.995 NfcAdaptation::HalOpen
2024:04:23-02:30:36.995 phNxpNci_MinOpen(): enter
2024:04:23-02:30:36.996 find found NXPLOG_NCIHAL_LOGLEVEL=(0x3)
2024:04:23-02:30:36.996 GetNxpNumValue: NXP Config Parameter : NXPLOG_NCIHAL_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 find found NXPLOG_EXTNS_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 GetNxpNumValue: NXP Config Parameter : NXPLOG_EXTNS_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 find found NXPLOG_TML_LOGLEVEL=(0x0)
2024:04:23-02:30:36.997 GetNxpNumValue: NXP Config Parameter : NXPLOG_TML_LOGLEVEL=(0x0)
2024:04:23-02:30:36.997 find found NXPLOG_FWDNLD_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 GetNxpNumValue: NXP Config Parameter : NXPLOG_FWDNLD_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 find found NXPLOG_NCIX_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 GetNxpNumValue: NXP Config Parameter : NXPLOG_NCIX_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 find found NXPLOG_NCIR_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 GetNxpNumValue: NXP Config Parameter : NXPLOG_NCIR_LOGLEVEL=(0x3)
2024:04:23-02:30:36.997 phNxpLog_InitializeLogLevel: global =3, Fwdnld =3, extns =3, hal =3, tml =0, ncir =3, ncix =3
2024:04:23-02:30:36.997 find found MIFARE_READER_ENABLE=(0x1)
2024:04:23-02:30:36.997 GetNxpNumValue: NXP Config Parameter : MIFARE_READER_ENABLE=(0x1)
2024:04:23-02:30:36.997 Entering phNxpNciHal_init_monitor
2024:04:23-02:30:36.997 Returning with SUCCESS
2024:04:23-02:30:36.997 find found NXP_NFC_DEV_NODE
2024:04:23-02:30:36.997 GetNxpStrValue: NXP Config Parameter : NXP_NFC_DEV_NODE
2024:04:23-02:30:36.998 phTmlNfc_Init Entry......
2024:04:23-02:30:36.998 find found NXP_TRANSPORT=(0x0)
2024:04:23-02:30:36.998 GetNxpNumValue: NXP Config Parameter : NXP_TRANSPORT=(0x0)
2024:04:23-02:30:36.998 getTransport Requested transportType: 0
2024:04:23-02:30:36.998 OpenAndConfigure Opening port=/dev/nxpnfc
2024:04:23-02:30:37.008 NfccReset, VEN eType 0
2024:04:23-02:30:37.039 NfccReset, VEN eType 1
2024:04:23-02:30:37.060 PN54X - Tml Reader Thread Started................
2024:04:23-02:30:37.060 phTmlNfc_Init exit wInitStatus=0
2024:04:23-02:30:37.060 PN54X - Tml Writer Thread Started................
2024:04:23-02:30:37.061 PN54X - Tml Writer Thread Running................
2024:04:23-02:30:37.061 thread started
2024:04:23-02:30:37.061 PN54X - Read requested.....
2024:04:23-02:30:37.062 PN54X - Invoking I2C Read.....
2024:04:23-02:30:37.062 PN54X - Write requested.....
2024:04:23-02:30:37.062 PN54X - Invoking I2C Write.....
2024:04:23-02:30:37.080 Write errno : 6b
2024:04:23-02:30:37.080 PN54X - Error in I2C Write.....
2024:04:23-02:30:37.081 PN54X - Posting Fresh Write message.....
2024:04:23-02:30:37.081 PN54X - Tml Writer Thread Running................
2024:04:23-02:30:37.081 write error status = 0x1ff

0 Kudos
Reply