2022-11-10 02:15 AM
Hello, i've got trouble with receiving SPI in interrupt.
Im running 2 SPI's on STM32F103RCT6; first is transmit only master, second is receive only slave, bus speed is 2MHz on both. SYSCLK is 64MHz.
Transmitting works great (blocking mode), but HAL_SPI_RxCpltCallback is working only for a moment after MCU reset; after 11 times interrupt is not firing at all. Funny thing is everything worked fine until i upgraded my CubeMX to latest and re-generated project.
Anyone got idea where to look for problems?
2022-11-10 07:29 AM
Debug the program. Pause it when things aren't working and examine the SPI state machine (hspix) and relevant SPI/DMA registers.