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.

Compiler/TMS570LS0432: No SPI1CLK signal in eample master_slave of HalCoGen

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Tool/software: TI C/C++ Compiler

Hello, TI Engineers

When I use the example master_slave of HalCoGen, I set SPI as GUI configurations. However, there is no Clock signal for SPI1(Master). I have tried all SPI example from HalCoGen. No Clock signal output in SPI1, SPI2 and SPI3. I think the board is broken or SPI of HalCoGen is useless.

Thanks and Regards!

Xinyu

  • Hello Xinyu,

    1. Driver Enable Tab: Enable SPI module
    2. PINMUX: check SPI modules you want to use
    3. SPI1/2/3 tab: configure SPI module (master or slave, baudrate, etc), configure the signal direction under SPIx Port (CLK should be Input for slave mode, etc)
    If you use SPI1 and SPI2 as the master and the slave, you need wire the 4 SPI signals. The pin connections must be as below:

    SPI1 ( Master ) SPI2 ( SLave)
    --------------------------------------------------
    SIM0 ---> SIMO
    S0MI <--- SOMI
    CLK ---> CLK
    CS0 ---> CS0