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.

LP-MSPM0L2228: Using SPI0 in controller mode

Part Number: LP-MSPM0L2228
Other Parts Discussed in Thread: MSPM0L2228, MSPM0L1117, SYSCONFIG

Tool/software:

Hi TI expert,

I'm trying to use SPI0 in controller mode.

The sample code uses the following:

mspm0_sdk_2_05_01_00/examples/rtos/LP_MSPM0L2228/drivers/spi_controller/

The sample code uses SPI1, but to use SPI0, I changed ti_drivers_config.h as follows:

When I build and run the code I changed, the SPI0_CS0 pulse is output, but the SPI0_SCK and SPI0_PICO outputs are fixed at low level and no signals are output.

Is it possible to run SPI0 in controller mode?

The same SDK LP_MSPM0L1117 uses SPI0 in controller mode, so I think it is possible with MSPM0L2228.

Best Regards,

Hiroyuki

  • Hi,

    You could change the SPI module from SPI0 to SPI1 in sysconfig and select SPI pins for SPI1:

  • Hi Pegfei,

    Thank you for your reply.

    I want to use SPI0.

    SPI0 was opened using the SPI_open() function, and SPI_transfer() completed successfully without any errors. SPI0_CS is outputting a pulse, but SPI0_SCK and SPI0_PICO remain fixed at a low level.

    I would like some advice on how to use SPI0.
    Regards,
    Hiroyuki
  • Hi Hiroyuki,

    Do you have a hard requirement for freeRTOS in your project?

    If not, I recommend you to use nortos examples, it provides more SPI examples and it supports sysconfig tool for SPI configuration.

    You could change the SPI module from SPI1 to SPI0 in this tool.

    Best Regards,

    Pengfei

**Attention** This is a public forum