cancel
Showing results for 
Search instead for 
Did you mean: 

[CubeMx 6.13.0 / STM32H7 Cube 1.12.1] CubeMx ADC configuration is not successsfully done in main.c

Yaël Boutreux
Associate II

MCU used : STM32H753ZITx LQFP144
CubeMx version : 6.13.0

Situtation: I have a IOC file with some configurations on ADC1, like "Left Bit Shift" set to "4 bits shift" and "Conversion Data Management" to "DMA One Shot Mode".

Those modifications are not translated into the generation ADC init in main.c

I need to edit this by myself by calling

ADC_REG_InitStruct.DataTransferMode = LL_ADC_REG_DMA_TRANSFER_LIMITED;
ADC_InitStruct.LeftBitShift = LL_ADC_LEFT_BIT_SHIFT_4;
2 REPLIES 2
Mahmoud Ben Romdhane
ST Employee

Hello @Yaël Boutreux ,

 

First let me thank you for posting and welcome to the ST Community.

For more investigation, I suggest please that you provide your Ioc.File.

 

Thanks.

Mahmoud

Hi @Mahmoud Ben Romdhane ,


Sure no problem, the corresponding .ioc file is attached to this message. :)

Thanks,
Yaël