cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with slave SPI receiving

MMcAl.1
Associate III

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?

1 REPLY 1
TDK
Guru

Debug the program. Pause it when things aren't working and examine the SPI state machine (hspix) and relevant SPI/DMA registers.

If you feel a post has answered your question, please click "Accept as Solution".