ECSPI using SDMA for cortex M4 can not recive data

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

ECSPI using SDMA for cortex M4 can not recive data

837 Views
JanChiang
Contributor I

Hi ,

I have a strange problem. I use SDMA to control the SPI according to the example ecspi_polling_master. Finally, I can get the correct data(tx and rx) on the oscilloscope, but the data from the ecspi_receiveData interface is always 0(rx).

The ECSPI Control Register is 0xF0B211, The Config Register is 0x100011

Labels (1)
Tags (1)
0 Kudos
4 Replies

833 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jan

 

I believe for sdma "polling" should not be used, for m4 ecspi sdma example one can look at

 

Best regards
igor

0 Kudos

826 Views
JanChiang
Contributor I

and here is the ecspi api for our platform 

0 Kudos

788 Views
igorpadykov
NXP Employee
NXP Employee

right, in your release such examples are not available, you can use them just as reference for

creating own.

 

Best regards
igor

0 Kudos

827 Views
JanChiang
Contributor I

Hi igor:

thanks your reply, But our platform and the files you provided look very different, the interface mentioned in your files can not be found in our code

0 Kudos