PN7150 not working

cancel
Showing results for 
Search instead for 
Did you mean: 

PN7150 not working

1,608 Views
pratyushtomar
Contributor IV

I am using Raspberry pi os image provided by NXP (with PN7150 drivers and library pre built) for testing PN7150 NFC. I tried using nfcDemoApp but PN7150 doesn't respond. I am able to detect it's address 0x28 when I run i2cdetect command. Following is the log while running nfcDemoApp

./nfcDemoApp poll

NxpExtns: find found NXPLOG_TML_LOGLEVEL=(0x3)

NxpExtns: find found NXPLOG_FWDNLD_LOGLEVEL=(0x3)

NxpExtns: find found NXPLOG_NCIX_LOGLEVEL=(0x3)

NxpExtns: find found NXPLOG_NCIR_LOGLEVEL=(0x3)

NxpHal: Entering phNxpNciHal_init_monitor
NxpHal: Returning with SUCCESS
NxpTml: Opening port=/dev/pn544

NxpTml: phTmlNfc_i2c_reset(), VEN level 1
NxpTml: phTmlNfc_i2c_reset(), VEN level 0
NxpTml: phTmlNfc_i2c_reset(), VEN level 1
NxpTml: PN54X - Tml Reader Thread Started................

NxpTml: PN54X - Tml Writer Thread Started................

NxpTml: PN54X - Tml Writer Thread Running................

NxpHal: NxpTml: PN54X - Read requested.....

NxpTml: thread started
PN54X - Invoking I2C Read.....

NxpTml: PN54X - Write requested.....

NxpTml: PN54X - Invoking I2C Write.....

NxpNciX: len = 4 > 20000101
NxpTml: PN54X - I2C Write successful.....

NxpTml: PN54X - Posting Fresh Write message.....

NxpTml: PN54X - Tml Writer Thread Running................

NxpHal: write successful status = 0x0
NxpHal: Response timer started
NxpHal: Waiting after ext cmd sent
NxpHal: hal_extns_write_rsp_timeout_cb - write timeout!!!
NxpHal: Response timer stopped
NxpHal: Callback Status is failed!! Timer Expired!! Couldn't read it! 0xff
NxpHal: NCI_CORE_RESET: Failed
NxpHal: Power Cycle
NxpTml: phTmlNfc_i2c_reset(), VEN level 1
NxpTml: phTmlNfc_i2c_reset(), VEN level 0
NxpTml: phTmlNfc_i2c_reset(), VEN level 1
NxpHal: PN54X Reset - SUCCESS

NxpTml: PN54X - Write requested.....

NxpTml: PN54X - Invoking I2C Write.....

NxpNciX: len = 4 > 20000101
NxpTml: PN54X - I2C Write successful.....

NxpTml: PN54X - Posting Fresh Write message.....

NxpTml: PN54X - Tml Writer Thread Running................
NxpHal: write successful status = 0x0

NxpHal: Response timer started
NxpHal: Waiting after ext cmd sent
NxpHal: hal_extns_write_rsp_timeout_cb - write timeout!!!
NxpHal: Response timer stopped
NxpHal: Callback Status is failed!! Timer Expired!! Couldn't read it! 0xff
NxpHal: NCI_CORE_RESET: Failed
NxpHal: Power Cycle
NxpTml: phTmlNfc_i2c_reset(), VEN level 1
NxpTml: phTmlNfc_i2c_reset(), VEN level 0
NxpTml: phTmlNfc_i2c_reset(), VEN level 1
NxpHal: PN54X Reset - SUCCESS

NxpTml: PN54X - Write requested.....

NxpTml: PN54X - Invoking I2C Write.....

NxpNciX: len = 4 > 20000101
NxpTml: PN54X - I2C Write successful.....

NxpTml: PN54X - Posting Fresh Write message.....

NxpTml: PN54X - Tml Writer Thread Running................
NxpHal: write successful status = 0x0

NxpHal: Response timer started
NxpHal: Waiting after ext cmd sent
NxpHal: hal_extns_write_rsp_timeout_cb - write timeout!!!
NxpHal: Response timer stopped
NxpHal: Callback Status is failed!! Timer Expired!! Couldn't read it! 0xff
NxpHal: NCI_CORE_RESET: Failed
NxpHal: Power Cycle
NxpTml: phTmlNfc_i2c_reset(), VEN level 1
NxpTml: phTmlNfc_i2c_reset(), VEN level 0
NxpTml: phTmlNfc_i2c_reset(), VEN level 1
NxpHal: PN54X Reset - SUCCESS

NxpTml: PN54X - Write requested.....

NxpTml: PN54X - Invoking I2C Write.....

NxpNciX: len = 4 > 20000101
NxpTml: PN54X - I2C Write successful.....

NxpTml: PN54X - Posting Fresh Write message.....

NxpTml: PN54X - Tml Writer Thread Running................

NxpHal: write successful status = 0x0
NxpHal: Response timer started
NxpHal: Waiting after ext cmd sent
NxpHal: hal_extns_write_rsp_timeout_cb - write timeout!!!
NxpHal: Response timer stopped
NxpHal: Callback Status is failed!! Timer Expired!! Couldn't read it! 0xff
NxpHal: NCI_CORE_RESET: Failed
NxpTml: PN54X - Write request NOT enabled

Labels (2)
0 Kudos
7 Replies

236 Views
nick_ijzendoorn
Contributor II

We sort off have the same problem. The NCI_CORE_RESET command is acknowledged but no response is send by the PN7150. The power seems fine and everything is decoupled as stated in the hardware design reference.

What was the problem with your antenna? Maybe we have sort of the same hardware problem where the CORE hangs due to an unexpected hardware state of some sort. Or a self test during startup failed.

Any idea what the firmware checks during startup / reset which can make it hang? Or maybe end up in an endless reset loop?

0 Kudos

212 Views
nick_ijzendoorn
Contributor II

Nevermind my post, our problem was probably that we forgot to flush the data cache of the MCU before we started the DMA transfer. So we thought that we send NCI_CORE_RESET but we actually send giberish.

My apologies.

0 Kudos

381 Views
pratyushtomar
Contributor IV

The problem was with our NFC board. Thanks for the reply.

0 Kudos

381 Views
olivierhaas
Contributor I

Hello Pratyush Tomar,

I have the same problem but I cannot log anything on the demoboard. What was your issue?

I cannot launch the demoboard, the adresse is even 0x28. I'm locked in the polling process juste under the

"... press enter to quit ..." message. The board do nothing.

Could you help me please,

Kind regards,

Olivier

0 Kudos

381 Views
pratyushtomar
Contributor IV

Mine problem was with it's NFC antenna and I was not using demo board but self designed NFC board using PN7150 controller.

0 Kudos

42 Views
aferm
Contributor I

I know this is an old post, but is there any chance you remember what your hardware issue was. I just got a test batch of custom boards I designed and am running into similar errors

 

#########################################################################################
##                                       NFC demo                                      ##
#########################################################################################
##                                 Poll mode activated                                 ##
#########################################################################################
                              ... press enter to quit ...

2021:04:08-16:37:25.766	NxpTml:     System already has pin /sys/class/gpio/gpio489
2021:04:08-16:37:25.767	NxpTml:     System already has pin /sys/class/gpio/gpio488
2021:04:08-16:37:25.971	NxpTml:     _i2c_write() errno : 79
2021:04:08-16:37:25.972	NxpTml:     PN54X - Error in I2C Write.....
2021:04:08-16:37:25.972	NxpHal:     write error status = 0x1ff
2021:04:08-16:37:25.973	NxpHal:     write_unlocked failed - PN54X Maybe in Standby Mode - Retry
2021:04:08-16:37:26.975	NxpHal:     hal_extns_write_rsp_timeout_cb - write timeout!!!
2021:04:08-16:37:26.976	NxpHal:     Callback Status is failed!! Timer Expired!! Couldn't read it! 0xff
2021:04:08-16:37:26.976	NxpHal:     NCI_CORE_RESET: Failed
2021:04:08-16:37:27.178	NxpTml:     _i2c_write() errno : 79
2021:04:08-16:37:27.178	NxpTml:     PN54X - Error in I2C Write.....
2021:04:08-16:37:27.178	NxpHal:     write error status = 0x1ff
2021:04:08-16:37:27.179	NxpHal:     write_unlocked failed - PN54X Maybe in Standby Mode - Retry
2021:04:08-16:37:28.181	NxpHal:     hal_extns_write_rsp_timeout_cb - write timeout!!!
2021:04:08-16:37:28.181	NxpHal:     Callback Status is failed!! Timer Expired!! Couldn't read it! 0xff
2021:04:08-16:37:28.181	NxpHal:     NCI_CORE_RESET: Failed
2021:04:08-16:37:28.383	NxpTml:     _i2c_write() errno : 79
2021:04:08-16:37:28.384	NxpTml:     PN54X - Error in I2C Write.....
2021:04:08-16:37:28.384	NxpHal:     write error status = 0x1ff
2021:04:08-16:37:28.384	NxpHal:     write_unlocked failed - PN54X Maybe in Standby Mode - Retry
2021:04:08-16:37:29.386	NxpHal:     hal_extns_write_rsp_timeout_cb - write timeout!!!
2021:04:08-16:37:29.387	NxpHal:     Callback Status is failed!! Timer Expired!! Couldn't read it! 0xff
2021:04:08-16:37:29.387	NxpHal:     NCI_CORE_RESET: Failed
2021:04:08-16:37:29.589	NxpTml:     _i2c_write() errno : 79
2021:04:08-16:37:29.589	NxpTml:     PN54X - Error in I2C Write.....
2021:04:08-16:37:29.589	NxpHal:     write error status = 0x1ff
2021:04:08-16:37:29.589	NxpHal:     write_unlocked failed - PN54X Maybe in Standby Mode - Retry
2021:04:08-16:37:30.592	NxpHal:     hal_extns_write_rsp_timeout_cb - write timeout!!!
2021:04:08-16:37:30.592	NxpHal:     Callback Status is failed!! Timer Expired!! Couldn't read it! 0xff
2021:04:08-16:37:30.592	NxpHal:     NCI_CORE_RESET: Failed
0 Kudos

381 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Pratyush Tomar,

Would you please specify the Raspberry Pi rev info? Maybe I can try to reproduce it on my side.

Thanks for your patience!

Have a great day,
Kan Li
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------