目前PDK的SPI能使用轮询模式进行SPI通信,但改为SPI的中断模式后,就不能正常发送数据,直接使用packages\ti\drv\spi\example\mcspi_slavemode\src\main_mcspi_slave_mode.c的例子,也不能,请问我使用src\main_mcspi_slave_mode.c的SPi中断的例子,需要更改哪些配置?麻烦指导下谢谢!
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.
目前PDK的SPI能使用轮询模式进行SPI通信,但改为SPI的中断模式后,就不能正常发送数据,直接使用packages\ti\drv\spi\example\mcspi_slavemode\src\main_mcspi_slave_mode.c的例子,也不能,请问我使用src\main_mcspi_slave_mode.c的SPi中断的例子,需要更改哪些配置?麻烦指导下谢谢!
请看下面e2e工程师的回复。
On which core do you want to get SPI interrupt and for which SPI instance?
For MCU SPI0, there is a direct interrupt for mcu R5F, but for Main domain R5F, you would require to configure R5F interrupt router. This probably have to be configured in the application.
请查看下面e2e工程师的最新回复。
Which interrupt register are you looking for to change? When you make this change, do you see this example working? I think there are several test cases in the SPI example, where it enables interrupt mode, by setting pollMode to false. Could you please refer to these examples?