ADC

Hello Guys, I am try to get the STM32F446RE to read analog signals from a potentiometer and I just cant seem to get it right please help me out, can I please get an example code that works cause even uploading the code I have written just isn't working right now.