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.

SPI communication problem between DM6437 and DM365

hello,

           I am using DM6437 as a SPI slaver device to exchange data with DM365.The data stream appears element-shifted(the first data appers in the third palce instead and the first two data received are invalid).It frustrate me a lot because there is no problem if i use two DM6437 devices to communicate instead.

          Is anybody also meet this problem?how to fix it ?I find these word "2.11.2 Special Case:External Device is the Transmit Frame Master"   in SPRU943C in page 59,so is it the problem? how to initialization the device ?

         I use mcbsp driver provided by pspdrivers_1_10_03,  my configs

PSP_mcbspHwCfgRaw    mcbspRawHwCfg = {
                            /**< Serial Port Control Register */
                       0x00001000u,    /** enable clock stop without delay   */
                           /**< Receive Control Register */
                       0x00000000u,    /** Have a zero bit delay (SPI mode), */
                           /**< Transmit Control Register */
                       0x00000000u,    /** Have a zero bit delay (SPI mode), */
                           /**< Sample Rate Generator Register */
                       0x20080101u,    /** set clkdiv to 1,
                                                set internal clock,
                                                set 8 frame width            */
                           /**< Pin Control Register */
                       0x0000000Au     /** set transmit frame polarity     */
                            };

PSP_mcbspDevParams mcbsp_deviceparams = {
                          /**< Caching enabled                    */
                        TRUE,
                          /**< Internal clock is to be generated  */
                        TRUE,
                          /**< Framesync is to be generated       */
                        TRUE,
                         /**< Pointer to configuration parameters
                          **  to be used for the McBSP      */
                        PSP_McBSP_McBSP_SPISLAVE,     
/*                        PSP_McBSP_McBSP_SPIMASTER,                */
                          /**< mork as SPI master mode */
                        PSP_OPMODE_DMAINTERRUPT,
  /*                    PSP_OPMODE_INTERRUPT,         */
                        NULL,  
                        &mcbspRawHwCfg,

                        };  /* Device parameters structure */

 

regards,

Yongquan cao