LPSPI errors FreeRTOS

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

LPSPI errors FreeRTOS

573 Views
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 Kudos
2 Replies

544 Views
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 Kudos

558 Views
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 Kudos