Skip to main content
DKara.11
Visitor II
December 30, 2018
Solved

Bug in Code Generation for SM32F072 for ADC

  • December 30, 2018
  • 2 replies
  • 814 views

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();

This topic has been closed for replies.
Best answer by Imen.D

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

2 replies

S.Ma
Principal
December 30, 2018

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.DAnswer
Technical Moderator
January 2, 2019

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