2024-07-23 04:32 PM
CubeIDE 1.16.0 and/or CubeMX 6.12.0.
STM32H563 - SPI devices 4, 5, and 6 only support data widths of 8 or 16 bits. IDE/MX have a Data Size dropdown that let you choose 4 - 16 bits. Widths other than 8 or 16 blow up in HAL_SPI_Init when the data width is checked in an assert in stm32h5xx_hal_spi.c line 258.