2022-01-08 12:48 PM
I'm working with a STM32F051 Discovery board. I've created a project that should allow me to adjust the output voltage to the DAC pin PA4, but the expected step voltage output to that pin remains at ground voltage level.
I'm sure that I'm missing something simple but not sure. All configuration was created using the most recent STM32CubeMX 6.4.0 and I'm running my code with the STM32IDE 1.8.
Attached is the main.c method as well as the .ioc project created by CubeMX,
Can someone explain why my DAC output does not provide any signal?
Thanks.
Solved! Go to Solution.
2022-01-08 01:27 PM
You need to enable the DAC. Use HAL_DAC_Start, or duplicate what the code in there does.
Example:
2022-01-08 01:27 PM
You need to enable the DAC. Use HAL_DAC_Start, or duplicate what the code in there does.
Example:
2022-01-13 08:38 AM
Thanks! this fixed my issue.