[STM32L151] STM32CUBEIDE 1.9.0, FW_L1 V1.10.3 SPI1 and SPI2 are missing options to set Clock Polarity (CPOL) and Clock Phase (CPHA)
I was able to resolve by adding to SPI2_Init
/* USER CODE BEGIN SPI2_Init 1 */
hspi2.Init.CLKPolarity = SPI_POLARITY_HIGH;
hspi2.Init.CLKPhase = SPI_PHASE_2EDGE;
But STM32CubeIDE 1.8.0 with same version FW_L1 V1.10.3 does have the options as below
This is concerning, as upgrading to 1.9.0 then regenerating the project would change the auto generated SPI2_Init back to the default CPOL and CPHA
Alec Davis
