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:无法在 VIM 中启用 SPI2中断

Guru**** 2609895 points
Other Parts Discussed in Thread: HALCOGEN

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/759097/ccs-tms570ls0914-cannot-enable-spi2-interrupt-in-vim

器件型号:TMS570LS0914
主题中讨论的其他器件:HALCOGEN

工具/软件:Code Composer Studio

大家好、我刚才有一个有关 TMS570LS0914PZ HALCoGen 配置的简短问题。 我想使用中断以及 spiSendData()和 spiGetData()函数与 SPI2通信。

到目前为止、我成功地使用了该 MCU 的 SPI4模块。 我只需在 VIM 表中启用 SPI4高优先级(或低优先级)中断。 这将进而生成中断处理程序 spi4HighLevelInterrupt()或 spi4LowLevelInterrupt()。

问题是我在 VIM 表或 HALCoGen 中找不到 SPI2中断。 这是有目的的吗? 我缺少什么吗? 谢谢。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    TMS570LS091PGE 封装没有 SPI2。 但 TMS570LS09144PZ 封装具有 SPI2模块。 这是一个软件错误。 可以使用以下方法作为解决方法:

    1.在驱动程序使能下启用 SPI2。

    在 VIM RAM 中、通道17和通道30的默认 ISR 为 phpomInterrupt、请将通道17的 ISR 名称更改为 spi2HighLevelInterrupt、将通道30的 ISR 名称更改为 spi2LowLevelInterrupt:

    3.保存项目并生成代码:

    SPI2 ISR 将在 SPI.c 中生成

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    3.在 VIM 通道0-31下、启用通道17和通道30
    4.相同的项目并生成代码