Why is my ADC only showing zero as an output while simulating the stm32f103C6 model in proteus?

The above is my schematic layout of ,STM32F103C6 Series, attached to a virtual terminal with transmitting and receiving lines mentioned and the pin PA2 is used as an ADC input pin.

The above is the power rails configuration .

The above is the pinout view where PA9 and PA10 are used for transmitting and receiving which are attached to the virtual terminal as showed.

The above is the code where I declared test as an unsigned integer of 16 bits and character msg of length 10.
Then I have written the code for starting the ADC and then stopping for Conversion whereafter I have retrieved the values from HAL_ADC_GetValue and transmited to the virtual monitor by the help of UART Transmit function

Then I have build my program and converted into hex file whereafter I copied its path to the proteus stm32 model's program file.

The above is the output I am getting.
I am very confused on what went wrong in my program and simulation,
It would be very helpful If you guyz could assist me on this issue.