We used STM32CubeIDE to develop the embedded software. Here is Pinout View of the MCU.
In pinout & configuration window, make sure you chose the following settings.
System Core -> GPIO
System Core -> RCC
System Core -> SYS
We use Timers for Encoder reading. Timers -> TIM2, TIM3, TIM4
The SPI settings (Data Size and First Bit) chosen according to DAC chips datasheet.
Connectivity -> SPI2
Connectivity -> USB
Middleware -> USB_DEVICE
Here is Clock Configurtion