STM32CubeMX Bug: NbrOfDiscConversion not set
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-08-24 1:08 PM
Posted on August 24, 2015 at 22:08
When Discontinuous Conversion Mode is disabled CubeMX leaves the NbrOfDiscConversion field in ADC_InitTypeDef uninitialized which can cause assert_param(IS_ADC_REGULAR_NB_CONV(hadc->Init.NbrOfConversion)) in
HAL_ADC_Init to trigger resulting in an assert failure. CubeMx Version 4.9.0 STM32Cube FW_L1 V1.3.0 #bug #stm32cubemx #stm32l #assert
Labels:
- Labels:
-
Bug-report
-
STM32CubeMX
This discussion is locked. Please start a new topic to ask your question.
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-08-26 7:41 AM
Posted on August 26, 2015 at 16:41
Dear user,
thank you for reporting this issue. Actually, the parameterNbrOfDiscConversion
shall not be initialized when Discontinuous conversion is disabled. The ADC HAL driver will be corrected so that the following line is executed only if Discontinuous conversion is enabled:assert_param(IS_ADC_REGULAR_DISCONT_NUMBER(hadc->Init.NbrOfDiscConversion));
Best regardsOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2015-10-12 1:46 AM
Posted on October 12, 2015 at 10:46 Dear user, The fix will be delivered within STM32L1 1.4.0 package supported in our next CubeMX version 4.11 (coming out this month). Thanks.
