STMcubeMX bug report on adc dual fast interleaved mode.stm32f103c8tx
- February 3, 2017
- 1 reply
- 682 views
Hello
When I initialize ADC1 as master and ADC2 as slave in dual fast interleaved mode in CubeMX and generate the code, cpu hangs at MX_ADC2_Init(); . After some research I found that in MX_ADC1_Init(); and MX_ADC2_Init(); the below lines are written:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
multimode.Mode = ADC_DUALMODE_INTERLFAST;
if (HAL_ADCEx_MultiModeConfigChannel(&hadc1, &multimode) != HAL_OK) { Error_Handler(); }////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
when I commented these lines in MX_ADC2_Init(); all of the problems solved.
I have attached my main.c code and .ioc file.(problem has been fixed in the main.c file)
thanks....
#stmcubemx-bug-report #adc-dual-fast-interleaved-moed