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.

TMS570LC4357: HALCoGen 无法配置SPI TXINT 中断

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

我在HALCoGen 当中使能了SPI1, SPI2 的driver, 并且再PINMUX当中选择了相应的引脚, 但是我无法再SPI的配置页面配置第一个中断(PS: 我已经再VIM 页面使能了MIBSPI1HIGH和MIBSPI2HIGH的中断),请问我该怎么再HALCoGen 中使能 TXINT ?

PS MIBSPI页面无法使能前两个中断

  • 对于 HALCoGen 中的所有 SPI,TXINT 始终处于禁用状态。这是因为如果在 spiInit 中启用了 TX 中断,则会立即产生中断。这确保在完成外设初始化之前不会发生中断。

    请使用 HALCoGen API spiSendData 来启用 TX 中断。