cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in Code Generation for SM32F072 for ADC

DKara.11
Associate

ADC channel selection is generated like this:

LL_ADC_REG_SetSequencerChannels(ADC1, LL_ADC_CHANNEL_0);

LL_ADC_REG_SetSequencerChannels(ADC1, LL_ADC_CHANNEL_1);

LL_ADC_REG_SetSequencerChannels(ADC1, LL_ADC_CHANNEL_TEMPSENSOR);

and it is incorrect: there must be a call of LL_ADC_REG_SetSequencerChAdd();

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

Hello @Community memberarasev​ ,

This issue is fixed, please use the latest version of STM32CubeMX v5.0 and check the call of LL_ADC_REG_SetSequencerChAdd() instead of LL_ADC_REG_SetSequencerChannels.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

2 REPLIES 2
S.Ma
Principal

If the HAL and LL source code could be on Github or similar and people could submit their fixes (and their priority depending on their track records) would relieve the community site from bug reports...

Imen.D
ST Employee

Hello @Community memberarasev​ ,

This issue is fixed, please use the latest version of STM32CubeMX v5.0 and check the call of LL_ADC_REG_SetSequencerChAdd() instead of LL_ADC_REG_SetSequencerChannels.

Kind Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen