Request for Assistance with SPI Communication in NXP Libraries

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

Request for Assistance with SPI Communication in NXP Libraries

跳至解决方案
1,067 次查看
Anilpatil_SasvaAuto
Contributor III

Hello Team,

I am currently using the NXP SE Host library for the NCJ37A secure element in my project. I have noticed that the library employs a blocking method for SPI communication. I would like to request an example of an SPI driver that utilizes interrupts instead.

Additionally, I have integrated the "aNfcRdLib_SDK_Evaluation_v2.28" NFC reader library within the same project. Could you clarify whether this NFC reader library uses a blocking or non-blocking approach for SPI communication? If it employs a blocking method, I would appreciate guidance on how to implement a non-blocking SPI driver.

After integrating both example libraries provided by NXP, I observed that the applications execute independently without interfering with each other. However, when I try to run both applications simultaneously, only one works—the SE NCJ37A is functional, while the NFC reader is not.

Both clock configurations are different, SPI clock is also different.

Thank you for your assistance. 

标签 (1)
0 项奖励
回复
1 解答
970 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Anilpatil_SasvaAuto

I suggest using the example inside the RTD package, as there are no newer examples posted in community for now. 

Julin_AragnM_0-1748982314404.png

Still, you can refer to some old posts, such as: Example S32K144 LPIT DMA LPSPI - NXP Community.

Best regards,
Julián

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,047 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Anilpatil_SasvaAuto,

There is actually an example for SPI communication using interrupts, please refer to this community post: Example S32K312 SPI Transmit & Receive Using Interrupt DS3.5 RTD300 - NXP Community. Or, if you are using S32K1, the RTD package already includes examples for SPI interrupt, such as the Lpspi_Ip_HalfDuplex_Transfer_S32K1XX example.

However, if you need assistance with the aNFC library, please contact the respective team directly (at: automotive_nfc@nxp.com). 

Best regards,
Julián

 

0 项奖励
回复
1,004 次查看
Anilpatil_SasvaAuto
Contributor III

Hello Julián,

The example code in the provided link is for the S32K3XX micro, but I need it for the S32K144. could you please provide the same?

0 项奖励
回复
971 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Anilpatil_SasvaAuto

I suggest using the example inside the RTD package, as there are no newer examples posted in community for now. 

Julin_AragnM_0-1748982314404.png

Still, you can refer to some old posts, such as: Example S32K144 LPIT DMA LPSPI - NXP Community.

Best regards,
Julián

0 项奖励
回复