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.

TMS320F28P650DK: Configure the high-speed SPI to trigger an error interrupt

Part Number: TMS320F28P650DK

Tool/software:

Hello, I want to achieve DSP's high-speed SPI active data transmission. The SPI speed is configured at 40MHZ/35MHZ. Before the main loop, it will first enter an error interrupt, and then CCS will continue to run. The SPI active data transmission is all correct. I would like to know why it enters the error interrupt.

Set the SPI speed to 12MHZ--CCS and the system will not enter an error interrupt during operation.

  • Hi Nie,

    Are there other speeds above 12 MHz that works with no issues? According to the call stack when the error is called, the SPI_setConfig() is called. Could you examine that function as well as the previous function to see if there is any inconsistency in code? It seems it is not reaching the HS mode enable function in your main function even.

    Best Regards,

    Aishwarya 

  • Hello, expert, thank you very much for your reply. Previously, my low-speed clock was 50 MHz. Now I have changed it to 200 MHz, which is the same as the main frequency, and thus no error interrupts occur. But is it possible to have such a high low-speed clock? I used 3 SPIs, 2 UARTs and 1 SCI.

  • Nie,

    Glad to hear it! As shown in datasheet, the LSPCLK can operate within a 2-200 MHz range, so there is no issue with the configuration. 

    Best Regards,

    Aishwarya