Thank you for your quick reply. I tried to remove const in the program code and in all occurances (HAL and low level driver: dacStartConversion and callback fn.), but it still does not work.
Dear Giovanni, Is it possible to change the samples buffer on the fly? I mean, after starting with dacStartConversion. I would like to play a wav file and that is why I need to change the samples buffer continuously as I read the wav block by block.