SPI Bursts of CM4 on imx7

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

SPI Bursts of CM4 on imx7

4,264件の閲覧回数
miguel13366
Contributor I

Hey,

I am using ecspi on the cortex M4 core of the imx7. I need to make the communication faster.
At the moment the spi sends a burst of 4bytes. Between every burst I have a break of 2.5µs. Is there an opinion to make this faster? Or any other option to speed up the communication?
The software is based on the freertos example ecspi_polling_master.

best regards

Michael

ラベル(5)
タグ(3)
0 件の賞賛
返信
4 返答(返信)

4,114件の閲覧回数
CarlosCasillas
NXP Employee
NXP Employee

Hi Michael,

You could refer to Chapter 5 “Enhanced Configurable Serial Peripheral Interface (eCSPI)” of “FreeRTOS BSP i.MX 7Dual API Reference Manual” document to verify the features of the eCSPI driver included on the FreeRTOS BSP, and the available APIs, including the usage of DMA.

Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

---------------------------------------------------------------------------

0 件の賞賛
返信

3,673件の閲覧回数
edward_fu
Contributor III

Hi Carlos, 

Could you help me to deal with my thread https://community.nxp.com/t5/i-MX-Processors/how-to-set-imx8mq-spi-mode-3-correctly/m-p/1364135  

Thanks in advance

0 件の賞賛
返信

4,112件の閲覧回数
miguel13366
Contributor I

Hey CarlosCasillas,

I had a closer look on my problem. It seems, the time between the bursts, wont getting shorter, so I increased my clock rate and got new problems.

With the 48MHz CLK, the controller misses the first bit of the frame. I disabled the hysteresis, but the problem still occurs. 2019-12-05 08_25_03-scope_9.png - IrfanView.png

The data is be captured on the falling edge, so I should receive 0b0110xxxx, but I am receiving 0b00110xxx. Physically the correct data is transmitted, but not written into my receive buffer.

0 件の賞賛
返信

3,875件の閲覧回数
JanChiang
Contributor I
 
0 件の賞賛
返信