2024-02-26 9:34 AM
Hi all,
I am using SPC582B mcu.
The system timer is based on PIT0 CH0 (default choice) at frequency 1kHz.
In the timer IRQ handler, I need to invoke SPI spi_lld_exchange API.
Problem is this API doesn't complete, remaining stuck on the while
SPC5_SPI_WAIT_FOR_TXRX_COMPLETION(spip);
SPI APIs are configured synchronous:
I already activated the preemptable ISR option in the configuration:
Since I don't know if the priority level is ascending or not, I tried both priority situations, that is:
System timer (PIT0 CH0) priority: 4 DSPI0 priority: 10
System timer (PIT0 CH0) priority: 10 DSPI0 priority:4
Is these some configuration flag or API to call in order to make this SPI API working?
Thank you all for any help or indication,
FP
Solved! Go to Solution.
2024-03-03 5:44 AM
My routine was called inside in a critical section so I just needed to exit temporarily such region (as it was performed in the AutoDevKit SPSB081 example) in order to make the SPI synchronous APIs work.
Regards,
FP
2024-03-03 5:44 AM
My routine was called inside in a critical section so I just needed to exit temporarily such region (as it was performed in the AutoDevKit SPSB081 example) in order to make the SPI synchronous APIs work.
Regards,
FP
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.