This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SPI1 on DM355 ... receive always fails



Hi,

I have interfaced an LCD with SPI1 of DM355 EVM board. I have written a small SPI client driver to configure my LCD controller registers.

The problem I am facing is :

I can send the data properly over SPI1_SDO line.

But I never receive any data on the SPI1_SDI Input line. I tried shorting the SPI1_SDO and SPI0_SDI lines to do a loopback test. 

I also tried the SPI controller internal loopback test(by setting LOOPBACK bit in SPIGCR1 register). Enabled the SPI Debug macro.

In this case the SPIBUF and SPIDAT1 register dump also show that data is being sent properly .. but received data is always 0.

 

Anybody faced this issue ?

Any ideas/pointers will help.

 

Thanks,

Snehal

 

 

 

 

  •  

    I found an Interesting thing about the SPI1 controller :

    I disable the SPI1_SDI through PINMUX and kept SPI1_SDO enabled. Now when I send some data to the SPI1 controller .. I do not see any data on the SPI1_SDO

    line. However I do see the data on the SPI1_SDO line when I enable the SPI1_SDI line.

     

    So if the SPI1_SDI line is disabled it also disables the functionality of SPI1_SDO line. This is very weird.

     

  • i am using spi1 now too,I want to modify  the file at25xx_eeprom.c which used spi0 to support spi1, but i failed,the probe function didn't been called always! so puzzled,do you write the spi1 driver by yourslef?can you give me some hints?