ECSPI in i.MX6 is not work with Burst Mode when CS pin was set to SS.

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

ECSPI in i.MX6 is not work with Burst Mode when CS pin was set to SS.

Jump to solution
821 Views
massohy
Contributor II

Dear community member,

 

I am try to use ECSPI3 and ECSPI4 on i.MX6Q as SPI master device. When I use them, if I set CS pin to SS, then SPI CS signal was deactivated after each byte. But if I set CS pin to GPIO, then SPI CS signal was activated continuously while transmitting.

 

I think, if I want CS signal to be activated continuously, then I should set SPI clock with adding 1. But after I set it, then SPI CS signal was deactivated after each byte.

 

Q1. When I use ECSPI on i.MX6, Is it official usage that I use CS pin setting to GPIO not SPI SS?

 

Q2. When I used ECSPI4 setting CS pin to GPIO, I tried to communication to slave device on SPI with DMAC, I got I/O error at RX DMA. If I want to use SPI with DMA, then should I not set CS pin to GPIO?

 

Q3. Does i.MX6 have any difference between ECSPI3 and ECSPI4?

 

Q4. When I use ECSPI in i.MX6, then should I patch to my source code with this post “native cs and gpio cs in spi - imx6 “?

   I think, if I use ECSPI with burst mode, then I must patch it.

 

Best Regards,

Labels (1)
0 Kudos
1 Solution
650 Views
igorpadykov
NXP Employee
NXP Employee

Hi mas

1. right

2. it does not matter gpio or ss

3. no difference

4. yes if using native cs

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
1 Reply
651 Views
igorpadykov
NXP Employee
NXP Employee

Hi mas

1. right

2. it does not matter gpio or ss

3. no difference

4. yes if using native cs

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos