S32K3xx: LPSPI transfer mode configuration

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

S32K3xx: LPSPI transfer mode configuration

Jump to solution
2,982 Views
tecraghurama
Contributor I

I am having difficulties in finding the lpspi transfer mode selection.

S32K312EVB-Q172 evaluation board which uses S32K344 is being used.

I used Lpspi driver LSPI3 and did the configuration but unable to find, How to change the transfer mode selection settings.

In the generated code LPSPI_IP_POLLING is selected i needed LPSPI_IP_INTERRUPT.

Any inputs on this would be of help.

Thanks in advance.

Labels (1)
Tags (2)
0 Kudos
Reply
1 Solution
2,958 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @tecraghurama,

I apologize for the inconveniences; it seems there is currently no way to enable interrupts from the SPI driver's peripheral perspective. I will report this problem with the corresponding team.

"Master" mode supports both asynchronous methods (DMA & Interrupts). 

You will need to configure the IntCtrl driver for an interrupt name and handler, as implemented in the HalfDuplex examples:

Julin_AragnM_0-1707336577801.png

It is also important to update the transfer mode with the following line:

    Lpspi_Ip_UpdateTransferMode(SLAVE_EXTERNAL_DEVICE.Instance, LPSPI_IP_INTERRUPT);

I hope you find this helpful.

Best regards,
Julián.

View solution in original post

0 Kudos
Reply
2 Replies
2,959 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @tecraghurama,

I apologize for the inconveniences; it seems there is currently no way to enable interrupts from the SPI driver's peripheral perspective. I will report this problem with the corresponding team.

"Master" mode supports both asynchronous methods (DMA & Interrupts). 

You will need to configure the IntCtrl driver for an interrupt name and handler, as implemented in the HalfDuplex examples:

Julin_AragnM_0-1707336577801.png

It is also important to update the transfer mode with the following line:

    Lpspi_Ip_UpdateTransferMode(SLAVE_EXTERNAL_DEVICE.Instance, LPSPI_IP_INTERRUPT);

I hope you find this helpful.

Best regards,
Julián.

0 Kudos
Reply
2,939 Views
tecraghurama
Contributor I

@Julián_AragónM 

Thanks for your Response.

We have configure the IntCtrl driver for an interrupt name and handler.

and will try using the function for updating the transfer mode.