Skip to main content
herwin
Visitor II
November 4, 2016
Solved

STM32L ADC in Dual Regular Simultaneous Mode

  • November 4, 2016
  • 3 replies
  • 1411 views
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.
    Best answer by Jeanne Joly
    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
    November 16, 2016
    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
    January 5, 2017
    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
    January 13, 2017
    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