STM32 DAC triangle generator flat bottom
The datasheet of the MCU says that when the DAC buffer is enabled, minimum output voltage is 0.2V.
As you are using 3.3V supply and reference, it corresponds to 12-bit DAC value of 248.