AnsweredAssumed Answered

CubeMX adc rank number bug

Question asked by Lukasz Przenioslo on May 30, 2018
Latest reply on Jun 1, 2018 by Lukasz Przenioslo

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.

Imen D

Outcomes