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.

TMS570LC4357: Master -Slave SPI does not work as expected.

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi, I am trying to get MibSPI as master -slave model. I have two TMS570C43x launch pads. I configured one as master and another one as slave. I used HALCOGEN for this. 

I noticed master works just fine. I checked by shorting SIMO and SOMI pins. I am using MIBSPI3SIMO[0], MIBSPI3SOMI[0], MIBSPI3CLK[0], MIBSPI3CS[2] for master and same for slave without parallel mode. 

Master configuration is as below.

Master Data Format is as below: 

Master Transfer Group. buffer mode is 4 not 7.

Master MIBSPI3 Port: I configured ENA and other CS0,CS1,CS3..as GIO and SOMI, SIMO, CLK and CS[2] as below.

As I said master works fine. Now the issue I have is with slave. I noticed slave requires master to de-assert CS line after every buffer transmission. 

Below is my slave setup.

**************************

Slave Setup

**************************

I played with CSHOLD and CSHOLD FS but did't get right behavior.

Please let me know what wrong am I doing ? 

Below is the sequence I am trying to get working. 

1) Master : CS low

                  Send buffer of 8 short integers

                   after master is done with sending data, 

   From slave:  Read the data and send same data back to the master. 

After this master will de-assert CS(Pull High)

I am using mibSPI for half duplex communication.