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.

CCS/TMS570LC4357: SPI1 SPI2 communication issue

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN,

Tool/software: Code Composer Studio

Hi,

i am trying to configure the spi1 as master and the spi2 as slave as per the given examples provided by halcogen for the other controllers.

But for TMS570LC4357, i am unable to receive the data for the slave.

I have also tried with the spi1-spi3 communication as provided here:

TMS570LC4357: SPI Communication Stuck - Arm-based microcontrollers forum - Arm-based microcontrollers...

e2e.ti.com
Part Number: TMS570LC4357 Other Parts Discussed in Thread: HALCOGEN , TMS570LS3137 , Am trying to use SPI of Hercules in TMS570LC43x, It is working in loopback

But still facing the same issue.

Can you please provide me the wroking example for the same.

Regards,

Shivam Kakad

  • Hello,

    If you are trying the code from the link above, please check your wiring. The code from link above is working at my place.

    Are you using LaunchPad or HDK?

    At LaunchPad connections have to be:
    MIBSPI1CLK @ J5.7       --->  MIBSPI3CLK @ J1.7
    MIBSPI1SIMO[0] @ J6.6 ---> MIBSPI3SIMO @ J2.6
    MIBSPI1SOMI[0] @ J6.7 <--- MIBSPI3SOMI @ J2.7
    MIBSPI1CS[0] @ J6.3    ---> MIBSPI3CS[0] @ J5.5



    Best regards,
    Miro

  • Hi Miro,

    We are using HDK.

    Regards,

    Shivam Kakad

  • Hello,

    On HDK connections has to be:

    MIBSPI1CLK @ J9.6       --->  MIBSPI3CLK @ J11.78
    MIBSPI1SIMO[0] @ J9.11 ---> MIBSPI3SIMO @ J11.73
    MIBSPI1SOMI[0] @ J9.12 <--- MIBSPI3SOMI @ J11.74
    MIBSPI1CS[0] @ J9.8    ---> MIBSPI3CS[0] @ J11.76

    Best regards,
    Miro

  • HI,

    I still cannot able to provide the communication between either spi1-spi2 communication or spi1-sp3. can you please provide the settings for the halcogen that we need to incorporate to exist the communication between it.

    i followed the following steps for the halcogen.

    1) Driver TAB
     - Select SPI2
     - Select SPI1
     2) VIm Channel 0-31
     - Enable SPI2 Level 0 and Level 1 channels.
     3) SPI2 TAB
     - SPI2 Global SubTAB
     - Uncheck Master Mode
     - Uncheck Internal Clock
     - SPI2 Port SubTAB
     - Uncheck DIR for CS 0
     3) SPI1 TAB
     - Have it default
     4) Generate Code.

  • Can anyone please help me out in this.

    I have tried with enabling the Pinmux configuration for spi1 and spi2. but still not able to get the data in the slave.

    Help me out in this please.

    Regards,

    Shivam Kakad

  • Hello,

    Did you succeed with SPI1-SPI3 communication using the attached project from the link above? If this project is not working for you may be you have connection problem. Did you observe whether data is transmitted from SPI1 (using oscilloscope, for example )?

    Best regards,
    Miro

  • Hello,

    I am closing this thread since there is no feedback. You can always reopen it with writing new post at the end or you can open new thread.

    Best regards,
    Miro