Hi Carmine,
Just an update as I now have contrast on my lcd.
Looking at your example code, I found the structure to be slightly different from my version of CubeMX.
I don’t think I did anything different apart from switching timer and trying channel 1 of the DAC. This was working fine and I switched back to channel 2, which now also worked as expected.
Br
Michael