2018-03-26 06:10 PM
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:
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:
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.
2018-03-27 01:14 AM
When the problem occurs, using debugger, read out and the SPI and relevant GPIO registers' content and check/post/compare to working state.
JW