S32K3xx: LPSPI transfer mode configuration

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K3xx: LPSPI transfer mode configuration

ソリューションへジャンプ
6,107件の閲覧回数
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.

ラベル(1)
タグ(2)
0 件の賞賛
返信
1 解決策
6,083件の閲覧回数
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 件の賞賛
返信
2 返答(返信)
6,084件の閲覧回数
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 件の賞賛
返信
6,064件の閲覧回数
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.