strange problem with SPI1 on STM32F7 with SPI mode3

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

Posts: 2
Joined: Tue Mar 05, 2019 3:00 pm

Re: strange problem with SPI1 on STM32F7 with SPI mode3

Postby mike_james » 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.

Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 5 guests