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/TMS570LS0914: Cannot enable SPI2 interrupt in VIM

Part Number: TMS570LS0914
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

Hi, I just have a quick question regarding the TMS570LS0914PZ HALCoGen configuration. I want to communicate with SPI2 using the interrupts and the function spiSendData() and spiGetData().

So far, I've been successful in using SPI4 module of this MCU. I would simply enable SPI4 high priority (or low) interrupt in the VIM table. This would in turn generate the interrupt handlers spi4HighLevelInterrupt() or spi4LowLevelInterrupt().

The problem is that I can't find SPI2 interrupts in the VIM table or HALCoGen. Is that on purpose? Am I missing something? Thanks.

  • Hello,

    TMS570LS091PGE package doesn't have SPI2. but TMS570LS09144PZ package has SPI2 module. This is a SW bug. The following can be used as workaround:

    1. enable SPI2 under under Driver Enable.

    2. In VIm RAM, the default ISR for channel 17 and channel 30 is phantomInterrupt, please change the ISR name for channel 17 to spi2HighLevelInterrupt, an change the ISR name of channel 30 to spi2LowLevelInterrupt:

    3. Save project and generate code:

    the SPI2 ISR will be generated in spi.c

  • 3. Under VIm Channel 0-31, enable channel 17 and channel 30
    4. same project and generate code