Hello,
I'm using LS1021a micro and when I transfer data from QorIQ, in out signals I get the attached picture (yellow = clk, green = cs)
There is a large gap between bytes and it is not always the same.
I would like to reduce this gap to the minimum possible.
Additional data:
- SPIDEV library.
- C and Python code
- SPI mode 3.
- Clock Tested: 1MHz, 4MHz, 8MHz...
- Kernel 4.14.78.
- Yocto
Thank you in advance.
PD: Attached picture and source code used for test.
NXP offers Yocto Linux BSP SDK 2.7 for the LS1021a:
https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/about/
I have checked that this SDK uses the same SPI driver as SDK 2.0.
Change this driver as code in LSDK 19.09.
Have a great day,
Pavel Chubakov
Hello PavelChubakov.
I will consider it in case it is possible to use LSDK in our project.
Thank you!
Use LSDK 1909 for the LS1021a.
See attached file.
This file contains fsl_dspi driver from SDK 2.0-1703 and fro LSDK 1909.
Compare the dspi_next_xfer_dma_submit function in LSDK 1909 and dspi_eoq_write function from SDK 2.0-1703.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you Pavel.
But for project requirements, we need to use Yocto for our distribution.
And as I understand, the LSDK code is not compatible with Yocto.
A yocto recipe it would be very useful for us.
Do you have any suggestion about that?
Thank you again.