2024-12-03 12:07 PM - edited 2024-12-03 12:23 PM
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();
}
2024-12-03 03:15 PM - edited 2024-12-04 02:44 AM
Hello @rflamino ,
I'm escalating that issue internally. Internal ticket for follow up 197724.
Thank you for your contribution.
2024-12-04 06:19 AM
Unmark the solution until the issue will be fixed.