cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE 1.17.0 Fails to Generate ADC3 Resolution Setting in Initialization Code

rflamino
Associate

 

In STM32CubeIDE Version: 1.17.0 Build: 23558_20241125_2245 (UTC) (migrate from FW_H7 V1.11.2 to FW_H7 V1.12.0), the ADC3 initialization code generated from the .ioc file is missing the resolution setting. Specifically, the line hadc3.Init.Resolution = ADC_RESOLUTION_12B; is not included, even though the resolution was configured in the .ioc file. As a result, the generated code for ADC3 initialization appears as follows, with the resolution parameter omitted:

 

 

 

   /** Common config
  */
  hadc3.Instance = ADC3;
  hadc3.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1;
  hadc3.Init.ScanConvMode = ADC_SCAN_DISABLE;
  hadc3.Init.EOCSelection = ADC_EOC_SINGLE_CONV;
  hadc3.Init.LowPowerAutoWait = DISABLE;
  hadc3.Init.ContinuousConvMode = DISABLE;
  hadc3.Init.NbrOfConversion = 1;
  hadc3.Init.DiscontinuousConvMode = DISABLE;
  hadc3.Init.ExternalTrigConv = ADC_SOFTWARE_START;
  hadc3.Init.ExternalTrigConvEdge = ADC_EXTERNALTRIGCONVEDGE_NONE;
  hadc3.Init.ConversionDataManagement = ADC_CONVERSIONDATA_DR;
  hadc3.Init.Overrun = ADC_OVR_DATA_PRESERVED;
  hadc3.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
  hadc3.Init.OversamplingMode = DISABLE;
  hadc3.Init.Oversampling.Ratio = 1;
  if (HAL_ADC_Init(&hadc3) != HAL_OK)
  {
    Error_Handler();
  }

 

 

 

2 REPLIES 2
SofLit
ST Employee

Hello @rflamino ,

I'm escalating that issue internally. Internal ticket for follow up 197724.

Thank you for your contribution.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Unmark the solution until the issue will be fixed.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.