STM32 gotchas
315. DAC1_OUT2 and DAC2_OUT1 are unbuffered in 'F303x6/8; DAC_CR.BOFF has different meaning there and has to be set for output on pins

The STM32 DAC usually has two output channels. Due to very low loading ability of the raw DAC output, it has an output buffer, which is controlled by the DAC_CR.BOFFx bit for each channel. Somewhat confusingly, this bit is a Buffer OFF control, i.e. it has to be cleared (which is also the default state) for the buffer to be switched on.

In the STM32F303x6/8, there are 2 DAC modules; however, they don't feature 2 buffered channels each. DAC2 does not even have the second channel, and only DAC1_CH1 is buffered. DAC1_CH2 and DAC2_CH1 are unbuffered. They are primarily intended to provide internal reference voltage for the on-chip comparators. Their output can be connected to pins, though, by setting the respective DAC_CR.OUTENx control bits.

However, note, that these DAC_CR.OUTENx bits occupy the same bit positions as DAC_CR.BOFFx for DAC channels which do have buffers.

Generally, the STM32F303xxx is a rather confusing line, as the higher models feature one DAC with the expected two buffered . There are differences among the lower-end and higher-end STM32F303xxx in several other regards, too, so they don't represent a fully mutually compatible set with increasing amount of memor, and the user has to carefully study the datasheets and reference manual for the differences.