Problem with slave SPI receiving
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-10 2: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?
- Labels:
-
SPI
-
STM32F1 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-11-10 7:29 AM
Debug the program. Pause it when things aren't working and examine the SPI state machine (hspix) and relevant SPI/DMA registers.
