ecspi about Status Register = 0x18

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

ecspi about Status Register = 0x18

677 Views
laufei
Contributor III

Hello, Freescale

I am doing the debug of ecspi with touch-tsc2008.

I met a issue about I can't receive the data from RXDATA, whie I saw the data from the capture signal according to the following picture.

Can you help me check the configure for why I can't get the data from RXDATA?

the spi configure:

spiTs2008Attach: devFreq=2000000, mode=0, bitWidth=8

Capture-spi.JPG.jpg

"

imxEcspiTransfer: txLen[1] rxLen[1] mode[0x0]

imxEcspiTransfer: cs=0, transLen=0x2, tx=0x1, rx=0x1, align=1

ctrlFreq=0x3938700, devFreq=0x1e8480, pre=0xe, post=0x1, freq=0x1e8480

imxEcspiChanCfg: confreg=0x70e1f1, configreg=0x100, ctrlFreq=60000000, spiFreq=2000000, curFreq=2000000

imxEcspiChanCfg OK

imxEcspiIsr: statreg=0x3

Tx: 0xd8

Tx: 0x0

imxEcspiIsr: statreg=0x18

omit rx-raw: 0x0

Rx: 0x0

imxEcspiIntTrans: done transfer

"

Thank you for your support!

Best Regards

Labels (6)
0 Kudos
2 Replies

570 Views
igorpadykov
NXP Employee
NXP Employee

Hi fe la

please try SDK spi example and iMX6_Firmware_Guide.pdf

has good explanation in Chapter 6 Configuring the eCSPI Driver

i.MX 6Series Platform SDK : Bare-metal SDK

Best regards

igor

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

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

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

0 Kudos

570 Views
laufei
Contributor III

Hello, igorpadykov

Thank you for your support!

I have fixed this issue, which is caused by the IOMUX - "IOMUXC_ECSPI2_MISO_SELECT_INPUT" choose the wrong way.

I use the ecspi2 on the dual-lite, which is different from dual and quad chip.

Best Regards

Fe la

0 Kudos