cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F107 SPI3 Failure at Random Times

Matt Koshman
Associate
Posted on March 27, 2018 at 03:10

I have the following microcontroller:

https://www.digikey.ca/product-detail/en/mikroelektronika/MIKROE-1103/1471-1016-ND/4495381

 

That interfaces with this radio module:

https://www.digikey.ca/product-detail/en/adafruit-industries-llc/3072/1528-1667-ND/6005357

 

I am using this micro with SPI3 with the following configuration:

0690X0000060AEqQAM.png

The micro communicates to the device normally for a while but after some time the peripheral just dies. You can see it trying to transmit, as the CS is raised and lowered, but there is no MISO, MOSI, and CLK working:

0690X0000060AGXQA2.png

The above image is collected after the SPI failure. Channel 6 is the CS, 7 is CLK, and 4 & 5 are MOSI & MISO.

The peripheral settings remain the same, the clocks remain the same, but the SPI simply stops working. With this module we don't have the option to use SPI 1 or 2. I don't know what to check anymore. We have tried disabling and re-enabling the clocks and then the SPI manually but this still does not fix the issue. It works every time we rest but only for a bit.

We are using Cube V4.25 and Keil V5.23. 

1 REPLY 1
Posted on March 27, 2018 at 10:14

When the problem occurs, using debugger, read out and the SPI and relevant GPIO registers' content and check/post/compare to working state.

JW