2022-04-26 07:00 AM
It fails when called by `HAL_ADC_Start_DMA(&hadc2, &ADCbuf[0], 1)` exact position is at stm32h7xx_hal_adc.c `ADC_Enable()` depicted in the picture below. I have no idea why this happening. Called by itself an internal error!
And complete project has been attached.
And pcb layout:
Solved! Go to Solution.
2022-04-27 06:16 AM
It seems we have hardware bug mentioned here:
I will test ans report. Test report:
CubeIDE does not generate hadc2.Init.ClockPrescaler= .
Then I've added folloing line to `MX_ADC_Init()` function before `HAL_ADC_Init(&hadc2)`:
hadc2.Init.ClockPrescaler=ADC_CLOCK_SYNC_PCLK_DIV4;
And all ASYNC prescaler prevent ADC for being enabled.
And the ADC got started, but why?
Could some employee please report this bug?
2022-04-27 05:54 PM
Sorry. Revision Y. (stepping is the Intel word for this. worked with Intel chips too long ..)
2022-04-28 03:46 PM
> CubeIDE does not generate hadc2.Init.ClockPrescaler
What is your CubeIDE version?
I cannot confirm this with v 1.7.0. Created a project for Nucleo H743-ZI2 with ADC1 and ADC2;
For both instances hadcN.Init.ClockPrescaler is generated.
But the Cube allows to select only async prescalers. All sync prescalers are greyed out and not available.
2022-04-29 04:24 AM
Version is 1.9. I've downloaded and installed it, own. Since there is no prescaler generation it uses it's default, which is asynchro with no divider. And the ADCSEL (asynchro clock source MUX, this is grates out and unchangeable) has it's default pll2p. ADC doesn't start but changing it from it's default will work!
Why the default doesn't?!
2022-04-29 05:21 AM
I've also tested h743zitx and h750vbtx adc clock configuration for both of them was also gray (after enabling arbitrary ADC channel). Is there some swing that I have missed? Wierd doesn't it? I think not, because USB I2S sai uart has been tested and their clock tree ihas become active. How this huge bug has been let to be releasing. It seems we will see version 1.9.1 soon! At least I hope.
2022-04-30 12:35 AM
same for 747XI. Bug in CubeMX.
2022-05-02 10:54 PM