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.

TMS570LS0432: SPI example HalCoGen settings for TMS570LS0432

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

I have met a problem about HalCoGen settings about example_spi_Master_Slave, I can not find the settings. I hope TI engineer could update the pictures of HalCoGen settings about example _spi_Master_Slave. I am new user for TMS570LS0432.

thansk!

regards!

Owen

  • Hello Xinyu,

    HW setting: PIN Connections must be as Below
    --------------------------------------------------------
         SPI1 ( Master )          SPI2 ( SLave)
    --------------------------------------------------------
         SIM0             --->    SIMO
         S0MI             <---    SOMI
         CLK              --->    CLK
         CS0              --->    CS0

    ---------------------------------------------
    HALCoGen GUI configurations
    ---------------------------------------------
     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.

    ---------------------------------------------
    CCS Project
    ---------------------------------------------
    1. Open CCS,
    2. New Project, same name used in HALCoGen, blank project (no main.c needed)
    3. Copy the eample code to system_main()
    4. add the include folder in project property
    5. Compile, load, the run

    Rgards,
    QJ