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.

RM46L852: Prebuilt SPI Code?

Part Number: RM46L852
Other Parts Discussed in Thread: HALCOGEN

Hi I know this is probably a really stupid question. I am currently working as an intern and my boss has been trying to get the SPI protocol working on a RM46L852 processor. I was wondering if there happened to be any prebuilt code for this? Thank you!

  • Hello,

    The serial communication on RM46 supports regular SPI and multibuffered SPI. I suggest you generate SPI driver using HalCoGen. HalCoGen is a code generation tool for Hercules device:

    https://www.ti.com/tool/HALCOGEN

    The HalCoGen's help has some examples. In the TMS570LS12x_12x folder, you will find an example: example_spi_master_slave.c. You can copy the code to your main() without any change.