Resolved! ADC gets stuck after doing a HAL_Delay
In the while loop I have this:HAL_ADC_PollForConversion(&hadc1, 1000); adcValue = HAL_ADC_GetValue(&hadc1);The ADC works okay until I execute this line, which is inside a function:HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_SET); HAL_Delay(3000); c...