How To Use DAC on STM32F4 Discovery?
The PA1 was just a typo when I was copying the code here. In the actual code, PA4 is initialized.
I have used the CubeMX. The SystemClock_Config(void) and DAC_Init(void) were generated by CubeMX and I am using them just as they were.
I have also used the HAL_DAC_Start() function in the above code.
After rechecking everything, it still doesn't work.
Am I still missing anything?