AnsweredAssumed Answered

PN7150 assert firmware crash on second read of ISO-DEP 

Question asked by Alberto Panizzo on Sep 19, 2019
Latest reply on Oct 9, 2019 by jimmychan

Following AN11690 we applied NXP modifications to support PN7150 on Android Pie.

 

Details on chip from logs

getChipType HwVersion : 0x88
getChipType Product : PN548C2
phNxpNciHal_configFeatureList chipType = 3
NxpNci> FW Version: 10.1.a7

 

Chip is functional and can read NFC cards without issues.

But P2P communication with another Android phone does make the firmware to crash with following log:

 

09-19 17:21:26.469 D/NxpTml ( 3491): PN54X - I2C Read successful.....
09-19 17:21:26.469 D/NxpNciR ( 3491): len = 4 > 61070101
09-19 17:21:26.469 D/NxpTml ( 3491): PN54X - Posting read message.....
09-19 17:21:26.469 D/NxpHal ( 3491): read successful status = 0x0
09-19 17:21:26.469 I/libnfc_nci( 4350): [INFO:nfc_ncif.cc(423)] NFC received ntf gid:1
09-19 17:21:26.469 I/libnfc_nci( 4350): [INFO:nfa_dm_act.cc(268)] NFC_RF_FIELD_REVT(0x5007)
09-19 17:21:26.470 I/libnfc_nci( 4350): [INFO:NativeNfcManager.cpp(700)] nfaDeviceManagementCallback: enter; event=0x5
09-19 17:21:26.470 I/libnfc_nci( 4350): [INFO:NativeNfcManager.cpp(752)] nfaDeviceManagementCallback: NFA_DM_RF_FIELD_EVT; status=0x0; field status=1
09-19 17:21:26.470 I/libnfc_nci( 4350): [INFO:phNxpExtns_DebugAgc.cpp(88)] EXTNS_DebugAgcCfg ,0:
09-19 17:21:26.470 I/libnfc_nci( 4350): [INFO:phNxpExtns_DebugAgc.cpp(114)] EXTNS_DebugAgcCfg AgcDebug not enabled
09-19 17:21:26.471 D/NxpTml ( 3491): PN54X - Read requested.....
09-19 17:21:26.471 D/NxpTml ( 3491): PN54X - Invoking I2C Read.....
09-19 17:21:26.757 E/WifiVendorHal( 3686): getWifiLinkLayerStats(l.937) failed {.code = ERROR_NOT_AVAILABLE, .description = }
09-19 17:21:26.783 D/NxpTml ( 3491): PN54X - I2C Read successful.....
09-19 17:21:26.783 D/NxpNciR ( 3491): len = 9 > 600006A00003A02000
09-19 17:21:26.783 D/NxpTml ( 3491): PN54X - Posting read message.....
09-19 17:21:26.784 D/NxpHal ( 3491): read successful status = 0x0
09-19 17:21:26.784 E/NxpHal ( 3491): CORE_RESET_NTF received !
09-19 17:21:26.784 E/NxpNciR ( 3491): len = 9 > 600006A00003A02000
09-19 17:21:26.784 E/NxpHal ( 3491): phNxpNciHal_emergency_recovery: abort()
--------- beginning of crash
09-19 17:21:26.784 F/libc ( 3491): Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 4477 (nfc@1.1-service), pid 3491 (nfc@1.1-service)

 

This happen just presenting for a second time the phone to the antenna.

 

Checking the documentation (UM10936) a CORE_RESET_NTF with argument A0 stays for: "An assert has triggered PN7150 reset/reboot" 

 

Attached the logs of first successful communication.

Outcomes