cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX adc rank number bug

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
5 REPLIES 5
Imen.D
ST Employee
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".
Thanks
Imen
Houda GHABRI
ST Employee
Posted on May 30, 2018 at 16:19

Hi

Przenioslo.Lukasz

‌,

You can switch to 4.1, it is OK

Regards,

Houda

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?

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.

Posted on June 01, 2018 at 07:26

houda.ghabri

DAHMEN.IMEN

‌ Just so you know, when imported the project from cube 4.0 to 4.1, all my internal pull-ups on all uart periph lines got removed:

0690X0000060BTIQA2.png

https://www.youtube.com/watch?v=IOkXBRoXRpg