DMA/SPI clock behavior on MIMXRT1024-EVK using LPSPI #94104
Replies: 2 comments 1 reply
-
hi @vibai-aspade , |
Beta Was this translation helpful? Give feedback.
-
hi @vibai-aspade, for the "tail" after each frame(8 clocks in your case), it is configurable. let me know if you have more questions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I’m working on an application using the LPSPI peripheral on the mimxrt1024_evk board, and while I’ve got basic SPI communication working, I’m running into a strange issue I can’t quite figure out.
The actual SPI transaction looks fine and is pretty short, but I’m noticing that the last clock bit seems to be held high for longer than expected at least 15+ microseconds than needed. I suspect this is related to the DMA engine that the LPSPI driver is using under the hood, or maybe just some overhead from the driver itself. I’m not sure.
I’m also seeing some odd behavior at higher SPI frequencies (20 MHz+) where the 8th clock bit stays high and the transmission kind of breaks down.
I’m new to Zephyr, so it’s very possible I’m missing something obvious in my prj.conf or overlay setup. Has anyone seen this kind of thing before? Any ideas on what might be causing that clock line to hang, or how to reduce that delay at the end of the transaction?
Here are some screenshots I captured on my logic analyzer:

SPI Capture at 10 MHz:
SPI Capture at 30 MHz

Beta Was this translation helpful? Give feedback.
All reactions