How to get external signal through ADC and send through DAC on a Nucleo-64 STM32F446RE
Hello guys.
I am using an nucleo-64 STM32f446RE development board and I am trying to sample a sine wave (532.2Hz/1.4Vpp) from a function generator. I am new to stm32 devices so I though I would use polling method for ADC, I know is usually the worse method and Interrupts or DMAs are better but I wanted to started with polling as it is the easiest. My code below compiles evrything fine, but when I connect to a oscilloscope, I don't get any signal. Can anyone help understand what is wrong with my code in general? thanks
System configurations
PA5 - DAC-Out1
PA0 -ADC2_IN0
sampling time 15 cycles
resolution 12bits
in the figure below, note that variable "adc_val" is assigned to uint32_t

