2024-05-22 07:52 AM
Hello all,
I bought two NUCLEO-H753ZI to experiment the ADC.
Used the CUBEMX inside the STM32CubeIDE to configure the ADC to do 4x oversample (ADC1 Oversampling Ratio = "Oversampling ratio 4x").
Then generated the code, but it does not compile:
...
hadc1.Init.LeftBitShift = ADC_LEFTBITSHIFT_NONE;
hadc1.Init.OversamplingMode = ENABLE;
hadc1.Init.Oversampling.Ratio = ADC3_OVERSAMPLING_RATIO_4;
hadc1.Init.Oversampling.RightBitShift = ADC_RIGHTBITSHIFT_NONE;
...
The error is "... main.c:204:35: error: 'ADC3_OVERSAMPLING_RATIO_4' undeclared ..."
Solved! Go to Solution.
2024-05-22 07:55 AM
Hello,
This is a known issue raised in this thread. It will be fixed in the coming versions of CubeMx.
2024-05-22 07:55 AM
Hello,
This is a known issue raised in this thread. It will be fixed in the coming versions of CubeMx.