Skip to main content
herwin
Visitor II
Nov 4, 2016 4:47 AM UTC
Solved

STM32L ADC in Dual Regular Simultaneous Mode

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.
    This topic has been closed for replies.
    Jeanne Joly
    Jeanne JolyBest answer
    Associate
    Jan 13, 2017 2:43 PM UTC
    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

    3 replies

    Amel NASRI
    ST Technical Moderator
    Nov 16, 2016 10:55 AM UTC
    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 "Best Answer" on the reply which solved your issue or answered your question.
    Jeremy Labrado
    Associate
    Jan 5, 2017 12:56 AM UTC
    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
    Jeanne JolyBest answer
    Associate
    Jan 13, 2017 2:43 PM UTC
    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