Skip to main content
Associate
December 3, 2024
Solved

STM32CubeIDE 1.17.0 Fails to Generate ADC3 Resolution Setting in Initialization Code

  • December 3, 2024
  • 3 replies
  • 988 views

 

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();
 }

 

 

 

This topic has been closed for replies.
Best answer by mƎALLEm

@mƎALLEm wrote:

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


Issue fixed in CubeMx 6.14.0 (already available on ST website)

3 replies

mƎALLEm
ST Technical Moderator
December 3, 2024

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 "Best answer" on the reply which solved your issue or answered your question.
mƎALLEm
ST Technical Moderator
December 4, 2024

Unmark the solution until the issue will be fixed.

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