2018-05-30 05:33 AM
Hello there,
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 #cubemx2018-05-30 05:51 AM
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.
2018-05-30 07:19 AM
Hi
Przenioslo.Lukasz
,You can switch to 4.1, it is OK
Regards,
Houda
2018-05-30 07:54 AM
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?
2018-05-31 11:37 PM
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.
2018-06-01 12:26 AM
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: