AnsweredAssumed Answered

STMcubeMX bug report on adc dual fast interleaved mode.stm32f103c8tx

Question asked by Shafiei.Pooyan on Feb 3, 2017
Latest reply on Feb 25, 2017 by Kolbjorn Fredheim

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....

Attachments

Outcomes