Replies: 1 comment
-
This is confirmed as an issue in the LPSPI driver, and this GitHub Issue will be used for tracking and further communication: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @DerekSnell and @decsny,
After rebasing to align with the latest fix in the LPSPI driver Fix NXP LPSPI native chip select when using synchronous API with DMA, I’m seeing some unexpected behavior. For reference, I’m working with the RT1060EVKB board and have the following project configuration flags:
I also updated the device tree to enable SPI transactions with DMA on the LPSPI peripheral:
Here’s the code I’m using for the transaction:
SPI configured mode:
SPI_WORD_SET(8) | SPI_OP_MODE_MASTER | SPI_TRANSFER_MSB
From the waveform output , I noticed some issues:
Additionally,
spi_transceive_dt
returns-116
, with an error log indicating<err> spi_mcux_lpspi: Timeout waiting for transfer complete.
When using the default LPSPI mode (non-DMA path) with the
cs-gpios
workaround in the DTS, I noticed this output from the digital analyzer:Aside from the issue with the component on the MISO channel (which I'm troubleshooting separately), I'm unsure which of the two modes reflects the correct behavior for the code I shared above. In the DMA path, I observe a single transaction from the RT1060, whereas in the non-DMA path, I see two transactions.
Best regards,
Ofir.
Beta Was this translation helpful? Give feedback.
All reactions