STM32F4 DAC with HAL does not work
Hi all,
coming from Atmega mC I’m still a newbie in all aspects concerning ARM MCU and it seems that I have some difficulties to understand especially the HAL drivers for DAC I generated with CubeMX. My situation is as follows:
I set up a first circuit with an STM32F405 on a breadboard that only contains the MCU and the components required for power supply and JTAG. This circuit works, I’m able to program it and to toggle one GPIO-Pin. Now I’m trying to generate a triangle signal using the DAC with the source code you’ll find following this link: https://dl.dropboxusercontent.com/u/11457526/main.c
This code is based on a project generated by CubeMX, my IDE is OpenSTM32. My problem is that my scope connected to PA4/DAC_OUT1 only shows a change from low to high once I program the MCU. I assume that I have an configuration error. Can someone give me a hint to find my mistake?
Many thanks,
Christian