Stm32f746 disco ADC not work with lilttlevgl

hi i am trying to run adc code with littlevgl graphic but fail below is the code for reference. if anyone done similar please let me know where i am wrong

Blockquote
void MX_ADC1_Init(void)
{
/* USER CODE BEGIN ADC1_Init 0 /
/
USER CODE END ADC1_Init 0 /
ADC_ChannelConfTypeDef sConfig = {0};
ADC_InjectionConfTypeDef sConfigInjected = {0};
/
USER CODE BEGIN ADC1_Init 1 /
//
/
USER CODE END ADC1_Init 1 */
/**Configure the global features of the ADC (Clock, Resolution, Data Alignment and number of conversion)
*/
hadc1.Instance = ADC1;
hadc1.Init.ClockPrescaler = ADC_CLOCK_SYNC_PCLK_DIV4;
hadc1.Init.Resolution = ADC_RESOLUTION_12B;
hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE;
hadc1.Init.ContinuousConvMode = ENABLE;
hadc1.Init.DiscontinuousConvMode = DISABLE;
hadc1.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
hadc1.Init.ExternalTrigConv = ADC_SOFTWARE_START;
hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT;
hadc1.Init.NbrOfConversion = 1;
hadc1.Init.DMAContinuousRequests = DISABLE;
hadc1.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
if (HAL_ADC_Init(&hadc1) != HAL_OK)
{
Error_Handler();
}
/**Configure for the selected ADC regular channel its corresponding rank in the sequencer and its sample time.
*/
sConfig.Channel = ADC_CHANNEL_0;
sConfig.Rank = ADC_REGULAR_RANK_1;
sConfig.SamplingTime = ADC_SAMPLETIME_3CYCLES;
if (HAL_ADC_ConfigChannel(&hadc1, &sConfig) != HAL_OK)
{
Error_Handler();
}
/**Configures for the selected ADC injected channel its corresponding rank in the sequencer and its sample time
/
sConfigInjected.InjectedChannel = ADC_CHANNEL_0;
sConfigInjected.InjectedRank = ADC_INJECTED_RANK_1;
sConfigInjected.InjectedNbrOfConversion = 1;
sConfigInjected.InjectedSamplingTime = ADC_SAMPLETIME_3CYCLES;
sConfigInjected.ExternalTrigInjecConvEdge = ADC_EXTERNALTRIGINJECCONVEDGE_NONE;
sConfigInjected.ExternalTrigInjecConv = ADC_INJECTED_SOFTWARE_START;
sConfigInjected.AutoInjectedConv = DISABLE;
sConfigInjected.InjectedDiscontinuousConvMode = DISABLE;
sConfigInjected.InjectedOffset = 0;
if (HAL_ADCEx_InjectedConfigChannel(&hadc1, &sConfigInjected) != HAL_OK)
{
Error_Handler();
}
/
USER CODE BEGIN ADC1_Init 2 /
/
USER CODE END ADC1_Init 2 */
}

Blockquote
reading adc

	if (OneSecFlag==SET){
		OneSecFlag = RESET;

		if (HAL_ADC_Start(&hadc1) != HAL_OK)
		{
		    /* Start Conversation Error */
			ADCValue=1;
		    // Error_Handler();
		}
		if (HAL_ADC_PollForConversion(&hadc1, 1000) != HAL_OK)
		{
		    /* End Of Conversion flag not set on time */
		    // Error_Handler();
		    ADCValue=2;
		    ADCValue = HAL_ADC_GetValue(&hadc1);
		}
		else
		{
		    /* ADC conversion completed */
		    /*##-5- Get the converted value of regular channel ########################*/
			ADCValue=3;
		}
		HAL_ADC_Stop(&hadc1);

It appears that this is an issue with your STM32 ADC setup rather than LittlevGL, as there is no LittlevGL code in the snippet you provided. Can you isolate LittlevGL from your code and test that the problem lies in your code and not LittlevGL (or vice versa)?

thanks done