Question
Value optimized out when reading from ADC.
Hello everyone,
i'm encountering a strange issue, I'm trying to read from the ADC on a STM32f429zi.
When my pin is grounded the value of the ADC is not 0 but around 1000. When i try to debug the value it doesn't give me any result but says: <optimized out>. This is the code i'm using:
uint32_t value = 0;
HAL_ADC_Start(&hadc1);
HAL_ADC_PollForConversion(&hadc1, 100);
value = HAL_ADC_GetValue(&hadc1);
HAL_ADC_Stop(&hadc1);I'm using system workbench for stm32 with a ST-link using SWD. I hope somebody can help me solve this issue. Thank you all! 
