Skip to main content
Lukasz Przenioslo
Associate III
May 30, 2018
Question

CubeMX adc rank number bug

  • May 30, 2018
  • 2 replies
  • 1583 views
Posted on May 30, 2018 at 14:33

Hello there,

0690X0000060BS0QAM.png

When configuring an ADC periph (STM32L452) the ranks are assigned incorrectly. Cube generates this:

sConfig.Rank = 1;

sConfig.Rank = 2;

// etc

Instead of this:

sConfig.Rank = ADC_REGULAR_RANK_1;

sConfig.Rank = ADC_REGULAR_RANK_2;

// etc

Thus, it doesnt work.

DAHMEN.IMEN

‌

#adc #stm32l4 #cubemx
This topic has been closed for replies.

2 replies

Technical Moderator
May 30, 2018
Posted on May 30, 2018 at 14:51

Hello

Przenioslo.Lukasz

,

Please update the STM32CubeMX version to use V4.1 and check that this issue is reproduced with the latest version.

If your problem still persists, please share your .ioc file.

With Regards,

Imen.

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"
Lukasz Przenioslo
Associate III
May 30, 2018
Posted on May 30, 2018 at 14:54

The thing is that learned by experience, I dont update the cube when new version comes, because they are always bugged. If this bug is fixed in that version, without breaking other functionalities (they do this most of the time) then I shall update. Is there any changelog providing information that this bug was fixed there?

Houda GHABRI
ST Employee
May 30, 2018
Posted on May 30, 2018 at 16:19

Hi

Przenioslo.Lukasz

‌,

You can switch to 4.1, it is OK

Regards,

Houda

Lukasz Przenioslo
Associate III
June 1, 2018
Posted on June 01, 2018 at 06:37

Hello,

Thank you for answer. This exact bug is indeed fixed in 4.25.1. Now we need to check either the rest of the code was not altered in a negative way.