TPL driver in non DMA mode requires SPI driver in Interrupt mode

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

TPL driver in non DMA mode requires SPI driver in Interrupt mode

785 Views
sathish_touch
Contributor I

We are trying to build a TPL driver in S32K as per below logical diagram. Here we were told that for this to work in non DMA mode requires SPI to operate in interrupt mode. Are there any direct sample driver to use as a reference for SPI driver to operate in Interrupt mode. Any guideline will help. We will be porting this to nuttx baseline.

 

sathish_touch_0-1649588243790.jpeg

 

0 Kudos
3 Replies

763 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sathish_touch,

You can refer to the SDK (S32DS 2.2 or S32DS 3.4) or RTD drivers (S32DS 3.4).

There are also examples for LPSPI in the interrupt mode.

Let me know if you have any specific questions,

 

Regards,

Daniel

0 Kudos

714 Views
sathish_touch
Contributor I

Hello Daniel,

We were using S32 Design Studio for ARM (Version: 2018.R1) till now.
 
After you have recommended S32DS 3.4, we installed 3.4 version now for referring to interrupt based code.
 
But, in this code, there does not seem to exist an example for LPSPI interrupt mode.
 
There are examples for LPSPI Master, LPSPI Slave and LPSPI transfer modes.
 
Which code, we need to refer for the implementation of LPSPI in interrupt mode?
 
Thanks,
Sathish
0 Kudos

709 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sathish_touch,

Use the lpspi_transfer_s32k144 example.

It utilizes both the master and the slave in the interrupt mode.

danielmartynek_0-1651561998271.png

 

Regards,

Daniel

0 Kudos