I am developing a software using the PN7150 based on the tag-raw_example provided in github. The issue is that sometimes the software get stuck in the I2C init function without returning.
The issue is related to the lpcusbsio driver
Thanks for your feedback.
Any news?
You could debug your program where is it stop.
Do you mean the I2C bus get stuck? have you try to send 9 clock pulse to reset the bus?
2025:04:25-15:15:00.575 NxpExtns: find found NXPLOG_TML_LOGLEVEL=(0x3)
2025:04:25-15:15:00.576 NxpExtns: GetNxpNumValue: NXP Config Parameter : NXPLOG_TML_LOGLEVEL=(0x3)
2025:04:25-15:15:00.576 NxpExtns: find found NXPLOG_FWDNLD_LOGLEVEL=(0x3)
2025:04:25-15:15:00.576 NxpExtns: GetNxpNumValue: NXP Config Parameter : NXPLOG_FWDNLD_LOGLEVEL=(0x3)
2025:04:25-15:15:00.576 NxpExtns: find found NXPLOG_NCIX_LOGLEVEL=(0x3)
2025:04:25-15:15:00.576 NxpExtns: GetNxpNumValue: NXP Config Parameter : NXPLOG_NCIX_LOGLEVEL=(0x3)
2025:04:25-15:15:00.576 NxpExtns: find found NXPLOG_NCIR_LOGLEVEL=(0x3)
2025:04:25-15:15:00.576 NxpExtns: GetNxpNumValue: NXP Config Parameter : NXPLOG_NCIR_LOGLEVEL=(0x3)
2025:04:25-15:15:00.576 NxpFunc: phNxpLog_InitializeLogLevel: global =3, Fwdnld =3, extns =3, hal =3, tml =3, ncir =3, ncix =3
2025:04:25-15:15:00.576 NxpHal: Entering phNxpNciHal_init_monitor
2025:04:25-15:15:00.576 NxpHal: Returning with SUCCESS
2025:04:25-15:15:00.576 NxpExtns: find found NXP_NFC_DEV_NODE
2025:04:25-15:15:00.577 NxpExtns: GetNxpStrValue: NXP Config Parameter : NXP_NFC_DEV_NODE
2025:04:25-15:15:00.595 NxpTml: Total I2C devices: 1
2025:04:25-15:15:00.655 NxpTml: Handle: 0x98003730
the debug get stuck here. The I2C_init receives the handle but does not work
Hello,
I2C interface on PN7150 meets standard I2C protocol, Please check the pull-up resistors of I2C pins. For example on OM5578 board, the 2 pins are not pulled up to HIGH via 10K/4.7k resistor. If use I2C to communicate with MCU or Processor, needed to pull these 2 pins up to HIGH on MCU side.
For reference, I believe you will find these guides helpful.
https://www.nxp.com/docs/en/user-guide/UM10936.pdf - You can check here the timings needs
https://www.nxp.com/docs/en/application-note/AN11756.pdf - Here some of the Hardware needs
I measure the resistor and checked the HW, which is ok.
I checked the i2c bus with the oscilloscope and is ok when it is initializing it.
The point is that sometimes the initialization does not work. In that case the signal on the oscilloscope is nothing both on SDA and SCL.