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.
Solved! Go to Solution.
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:
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.
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:
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.
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.