cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 ADC HAL Multimode

sttn
Associate
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?
1 ACCEPTED SOLUTION

Accepted Solutions
Jeanne Joly
Senior III
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

View solution in original post

2 REPLIES 2
Amel NASRI
ST Employee
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 Accept as Solution on the reply which solved your issue or answered your question.

Jeanne Joly
Senior III
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