2016-07-13 04:05 PM
Hi,
I generated a project that included ADC2. Multimode is set to independent. When I run my project I get an error in MX_ADC2_Init. When I trace it, the problem is in HAL_ADCEx_MultiModeConfigChannel(). At line 2200 in the attached file t it tries to set the slave, using ADC_MULTI_SLAVE, but since it is ADC2 the slave instance is set to NULL. It then immediately tries to access that null on line 2208, causing the function to return an error. Is this a bug, or have I configured something wrong? Ricardo #stm32l4-cubemx-fw1.5.1-adc2016-07-21 03:37 AM
Hi,
This issue is reported to ST team.You can refer to this [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/STM32L4%20ADC%20Initialization%20Problem&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21¤tviews=15]thread with same problem.ST team is aware about this issue now.Regards2017-08-25 03:43 AM
Hello
Hassan.Ricardo
,Sorry for the very long delay to answer.
This has been fixed since L4 firmware version 1.5.2. An error is now returning.
Kind regards
Sirma