Request for Assistance with SPI Communication in NXP Libraries

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Request for Assistance with SPI Communication in NXP Libraries

Jump to solution
1,069 Views
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. 

Labels (1)
0 Kudos
Reply
1 Solution
972 Views
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

View solution in original post

0 Kudos
Reply
3 Replies
1,049 Views
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 Kudos
Reply
1,006 Views
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 Kudos
Reply
973 Views
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 Kudos
Reply