AnsweredAssumed Answered

SPI documentation mismatch with CubeMX

Question asked by Andrei Chichak on Mar 26, 2017
Latest reply on Aug 16, 2017 by omer Korech

I'm using CubeMX 4.19.0 for STM32F407G-DISC1 and firmware for STM32F4 version 1.14.0. (yes I realize there is an update).


When setting up an SPI port, one of the parameters is CPHA, the clock phasing. You have to declare whether the slave will have stable data on the rising or falling phase of the clock edge.


RM0090 has this parameter as CPHA=0|1. Cube has the Clock Phase parameter being 1 edge or 2 edge. Umm, one edge or two, that doesn't make any sense.


If I dig deeper into RM0090, the explanation of CPHA says:

0: The first clock transition is the first data capture edge
1: The second clock transition is the first data capture edge


Cube needs an explanation in the description area saying which is which. I expect that Cube means first edge and second edge, which almost matches RM0090.


In it's current form, Cube is making me write this request rather than guiding me to the proper setting.