Skip to main content
Ricardo Hassan
Associate III
July 13, 2016
Question

possible cubemx or library bug?

  • July 13, 2016
  • 1 reply
  • 679 views
Posted on July 14, 2016 at 01:05

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-adc
This topic has been closed for replies.

1 reply

slimen
Visitor II
July 21, 2016
Posted on July 21, 2016 at 12:37

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&currentviews=15]thread with same problem.

ST team is aware about this issue now.

Regards
Sirma Siang
ST Employee
August 25, 2017
Posted on August 25, 2017 at 10:43

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