cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L ADC in Dual Regular Simultaneous Mode

herwin
Associate
Posted on November 04, 2016 at 05:47

The original post was too long to process during our migration. Please click on the attachment to read the original post.
1 ACCEPTED SOLUTION

Accepted Solutions
Jeanne Joly
Senior III
Posted on January 13, 2017 at 15:43

Hello

76386

and

Labrado.Jeremy

,

This issue has been solved and delivered in CubeMX4.

Don't hesitate to upgrade CubeMX release in order to avoid this issue.

Thanks and best regards.

Eric

View solution in original post

3 REPLIES 3
Amel NASRI
ST Employee
Posted on November 16, 2016 at 11:55

Hichan.herwin,

Please try removing the following code from the ADC2 configuration and let me know please if the problem is resolved then:

#if 0
/**Configure the ADC multi-mode 
*/
multimode.Mode = ADC_DUALMODE_REGSIMULT;
multimode.DMAAccessMode = ADC_DMAACCESSMODE_12_10_BITS;
multimode.TwoSamplingDelay = ADC_TWOSAMPLINGDELAY_1CYCLE;
if
(HAL_ADCEx_MultiModeConfigChannel(&hadc2, &multimode) != HAL_OK)
{
Error_Handler();
}
#endif

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Jeremy Labrado
Associate II
Posted on January 05, 2017 at 01:56

Hi chan.herwin,

Have you find a way to read the two ADCs simultaneously finally?

I am having the same problem so we can maybe help each other.

Cheers,

Jeremy

Jeanne Joly
Senior III
Posted on January 13, 2017 at 15:43

Hello

76386

and

Labrado.Jeremy

,

This issue has been solved and delivered in CubeMX4.

Don't hesitate to upgrade CubeMX release in order to avoid this issue.

Thanks and best regards.

Eric