[Yocto] Sent wrong spi device id to spi flash

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

[Yocto] Sent wrong spi device id to spi flash

551 Views
charleshuang
Senior Contributor II

Hi

We use MX6QDL_PAD_EIM_D28 as our spi4 MOSI, but we can't ecognized SPI flash

And we use oscilloscope to measure EIM_D28,we found a strange phenomenon

As shown in below

spi.jpg

At boot time, host will send deivce id(0X9F) to SPI,but before sending device id, EIM_D28 have a pulled LOW signals.

It will make the host sends the id becomes 0x1f.

We also have another SPI5,it will not have the phenomenon.

Both of them,we set pin control as below in dts file

      MX6QDL_PAD_EIM_D28__ECSPI4_MOSI           0x170f1

      MX6QDL_PAD_SD1_CMD__ECSPI5_MOSI         0x170f1

Please help to investigate this issue.

Thanks.

Labels (5)
0 Kudos
2 Replies

425 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

Have you checked that that pin MX6QDL_PAD_EIM_D28__ECSPI4_MOS is not used in any onther node?

If it is used I recommend you to disable the module that is using it.

Best Regards,

Alejandro

0 Kudos

425 Views
charleshuang
Senior Contributor II

Hi

We don't use this pin for the other modules

And I try to send two message ,but I found that there were still a low signals before send each message,

As shown in below

spi_test.jpg

Are there any usage restrictions on the pin?

Thanks.

0 Kudos