Skip to main content
sttn
Associate
August 3, 2016
Solved

STM32L4 ADC HAL Multimode

  • August 3, 2016
  • 2 replies
  • 1014 views
Posted on August 03, 2016 at 15:14

Hello! I am trying to start ADC2 on stm32l476, but it always goes to error handler

multimode.Mode = ADC_MODE_INDEPENDENT;

    if (HAL_ADCEx_MultiModeConfigChannel(&hadc2, &multimode) != HAL_OK)

    {

    Error_Handler();

    }

This condition never return true

if ( (ADC_IS_CONVERSION_ONGOING_REGULAR(hadc) == RESET)

    && (ADC_IS_CONVERSION_ONGOING_REGULAR(&tmphadcSlave) == RESET) )

I checked bits in registers but they are ok. Can you tell me thats wrong?
    This topic has been closed for replies.
    Best answer by Jeanne Joly
    Posted on January 13, 2017 at 15:48

    Hello 

    telezhkin.artur,

    This issue is solved in CubeMX4.18.

    Please, upgrade CubeMX to avoid having this issue.

    BR. Eric

    2 replies

    Amel NASRI
    ST Technical Moderator
    August 18, 2016
    Posted on August 18, 2016 at 17:03

    Hi telezhkin.artur,

    I think that this is the same issue as the one highlighted in [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/STM32L4%20ADC%20Initialization%20Problem&FolderCTID&currentviews=53]this thread. A workaround is already suggested there.

    We will try to get it fixed soon.

    -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.
    Jeanne Joly
    Jeanne JolyBest answer
    Associate
    January 13, 2017
    Posted on January 13, 2017 at 15:48

    Hello 

    telezhkin.artur,

    This issue is solved in CubeMX4.18.

    Please, upgrade CubeMX to avoid having this issue.

    BR. Eric