AnsweredAssumed Answered

How to check if SPI is working?

Question asked by Giorgio Presciutti on Oct 4, 2017
Latest reply on Dec 12, 2017 by harsh basarikodi

Dear NXP Community,

I'm trying to use the MCIMX6Q-SDB board to communicate with an ADC. The communication is via SPI.


The i.MX6 evaluation board has a DNP NOR FLASH located in U14. I've soldered there the 4 wires of the SPI to create the connection with the ADC.


The four signals:





are correctly routed, I've checked the R590, R586, R584, R583 resistors and they are on position A.


The device tree is the following:

&ecspi1 {
    fsl,spi-num-chipselects = <1>;
    cs-gpios = <&gpio4 9 0>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_ecspi1>;
    status = "okay";


     adc@0 {
     compatible = "ti,ads7953";
     reg = <0>;
     #io-channel-cells = <1>;
     vref-supply = <2500>;
     spi-max-frequency = <20000000>;


The pin description of ecspi1 is the following:

pinctrl_ecspi1: ecspi1grp {
    fsl,pins = <
        MX6QDL_PAD_KEY_COL1__ECSPI1_MISO    0x100b1
        MX6QDL_PAD_KEY_ROW0__ECSPI1_MOSI    0x100b1
        MX6QDL_PAD_KEY_COL0__ECSPI1_SCLK    0x100b1
        MX6QDL_PAD_KEY_ROW1__GPIO4_IO09        0x1b0b0


When I try to communicate over SPI nothing happens. I see the clock select moving but no output on the MOSI. What's wrong with my configuration? Am I using the i.MX6 EVB correctly?


Thanks and regards