LPSPI errors FreeRTOS

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

LPSPI errors FreeRTOS

1,549件の閲覧回数
leroynash
Contributor I

I have a SPI client on LPSPI1 of my 1064 evk runnig FreeRTOS.   Using the LPSPI_RTOS_transfer call I see no errors if I run only the task the transfer is performed in. If I enable two other tasks which communicate using LPUARTs (using EDMA) I see SPI errors.  None of the LPUART data is ever used on the SPI. I am trying to understand the driver. It looks like the tx Fifo is filled in the task and transfer is handled in LPSPI_MasterTransferHandleIRQ?   I am not sure how the other tasks are effecting SPI.

Regards,

Leroy

0 件の賞賛
返信
2 返答(返信)

1,520件の閲覧回数
leroynash
Contributor I

Our spi client was expecting a 50% SCLK cycle. When we looked at the bus we see that master can hold it off. We appear to always get he correct number of transitions per chip select when we remove this check. It is not ideal for bandwidth but at least it is now functioning.

Regards,

Leroy

0 件の賞賛
返信

1,534件の閲覧回数
Alexis_A
NXP TechSupport
NXP TechSupport

Hello @leroynash,

Can you let me know which errors are present in the SPI interface? 

The LPSPI_RTOS_Transfer is an API that uses the same approach as the Non-Blocking example with the addition of using semaphores to control when the transfer is done. So it shouldn't block the UART communication.

Best Regards,

Alexis Andalon

0 件の賞賛
返信