Re: strange problem with SPI1 on STM32F7 with SPI mode3
Posted: Tue Mar 05, 2019 3:35 pm
In a non-ChibiOS project a while back, we wasted a lot of time with the STM SPI hardware : if you change clock mode with the clock in the wrong state, or accidentally create active clock edges during port initialisation, you end up clocking the SPI interface, and it stays one bit out of step with your expectations forever.
We ended up having to implement a master-slave 4 phase handshake between two STM32L151 micros where one was an SPI master and the other a SPI slave. The 4 phase handshake defined a point in time where both CPUs had set up all their GPIOs and then soft-reset their SPI controllers with all SPI signals in inactive states.
We ended up having to implement a master-slave 4 phase handshake between two STM32L151 micros where one was an SPI master and the other a SPI slave. The 4 phase handshake defined a point in time where both CPUs had set up all their GPIOs and then soft-reset their SPI controllers with all SPI signals in inactive states.