Question description
When I put the code of DSPI send in the While loop, the DSPI communication sends normally. But when I put the code into the STM interrupt, the DSPI communication cannot be sent.
In While loop:
In STM interrupt:
The program is stuck in this function:
The program is attached below.
Don't know what the problem is. Thank you for your help.
Hi,
try to increase interrupt priority for used DSPI module.
BR, Petr
Thanks for your direction. But how to increase interrupt priority for used DSPI module?
Looking forward to your specific guidance.
Hi,
use
DSPI_MasterSetDelay(DSPI0_INSTANCE, 1, 1, 1);
INT_SYS_SetPriority(DSPI0_TxFifoNotfull_IRQn,5);
INT_SYS_SetPriority(DSPI0_RxFifoNotempty_IRQn,5);
BR, Petr
Thanks for your direction. Best wishes for you.