Hi all:
We are use DM368 spi2 to communicate with one MCU, base on the IPNC 3.1 RDK , when short connect SPI2_SOMI and SPI2_SIMO pins, then run the spi test tool, it works ok.
But Waveform in osciloscope looks there is no setup time and hold time, we have set CSHOLD = 0, timer_disable = 0, and add "iowrite32(0 | (8<< 24) | (8 << 16), davinci_spi->base + SPIDELAY);" in the "dvsdk_ipnctools\ipnc_psp_2_10_00_14\ti-davinci\drivers\spi\davinci_spi_master.c" file.
why the tC2TDELAY and tT2CDELAY are 0 on the waveform? we have read the driver code and spi datasheet for long time, but still can not fix the problem!!!
thanks
REGARDS
Steven