Skip to main content
LTan.1
Visitor II
July 29, 2020
Question

STM32G0 LL Driver Cube Code Generation Bug (For Internal ADC)

  • July 29, 2020
  • 1 reply
  • 621 views

STM32CubeIDE Version: Version: 1.3.0

STM32Cube Version: Version: 5.6.0-RC6 Build: 20200218-1639 (UTC)

Fimrware Package: STM32Cube FW_G0 V1.3.0

When using LL Driver (with VREFINT sampling)

It generates code as follows:

 LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(ADC1), LL_ADC_CHANNEL_VREFINT
 );

Which should be

 LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(ADC1), LL_ADC_PATH_INTERNAL_VREFINT);

This topic has been closed for replies.

1 reply

Amel NASRI
Technical Moderator
September 25, 2020

Hi @LTan.1​ ,

Sorry for delay to bring an answer to your post. Unfortunately its chance to be reviewed as it was placed under Bug-report topic and not in STM32 dedicated Q&A.

The good thing is that since that time when your reported this issue, STM32CubeMX 6.0.1 was released and a fix for this issue was deployed.

I have just checked it with this release and the call for LL_ADC_SetCommonPathInternalCh is as you suggest it.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.