This video shows how to setup a Timer triggered DAC. There are multiple ways of doing this but I use a Timer generated update interrupt to send values from a memory array to the DAC output buffer.
Code configuration for the STM32F746 Nucleo-144 board is done with STM32CubeMX for Keil uVision (MDK-ARM 5).