ESP32 PN5180 Communication Error?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

ESP32 PN5180 Communication Error?

1,323 次查看
zhangrupei
Contributor I

I use the ESP32-PICO-MINI-02 module to communicate with PN5180 through SPI.

I have added the needed interface into the NFC library which was found from the Internet.

Now I start to test the system based on Example 4, the codes will wait for the IRQ event shown below:

 

status = phhalHw_Wait(sDiscLoop.pHalDataParams, PHHAL_HW_TIME_MICROSECONDS, 5100);

 

The "true" code is in "NxpNfcRdLib\comps\phhalHw\src\Pn5180\phhalHw_Pn5180_Wait.c"  

phhalHw_Pn5180_WaitIrq():

 

statusTmp = phOsal_EventPend((volatile phOsal_Event_t * )(&pDataParams->HwEventObj.EventHandle), E_OS_EVENT_OPT_PEND_SET_ANY, PHOSAL_MAX_DELAY,
                (E_PH_OSAL_EVT_RF | E_PH_OSAL_EVT_ABORT), &tReceivedEvents);

 

 

And I find that only the IRQ handle will post the event? Is my understanding right?

Unfortunately, there is no interrupt on the IRQ pin. This means the SPI communication is not established successfully? If the communication is error, how should I do to ensure PN5180 has received the data from ESP32?

 

0 项奖励
回复
0 回复数