IMX8MM ECSPI

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

IMX8MM ECSPI

740 Views
hanchungtseng
Contributor I

Hi,

I have an ECSPI problem on the IMX8MM.
I try to send data with a length of 1024Byte, but the CS status changes at 512Byte.
I know ECSPI has a maximum length of 512 Byte per transmission, is there a way to make the CS not change state during transmission?

I must ensure that the slave receives the full data being sent in each CS cycle.

IMX8MM_ECSPI.jpg

Thanks for your help and best regards,

Benny Tseng

Tags (3)
0 Kudos
2 Replies

613 Views
Yuri
NXP Employee
NXP Employee

Hello,

  512 bytes is the maximum length. You can use a GPIO pin instead of ECSPI CS (SS)

to transfer more data.

Regards,

Yuri.

0 Kudos

613 Views
hanchungtseng
Contributor I

Hi Yuri,

Thank you for your response.

I know this solution, but using it will make the data transfer time longer because the manual control of CS-GPIO will have a delay.

I have a functional requirement to send 8MB of data, so I have to cut multiple packets to send because the slave receives up to 16KB of data in a single transaction, which makes the transfer time even longer.

I would like to know other solutions to reduce the delay time caused by manual control by setting spi dma or register.

Regards,

Benny

0 Kudos