2020-07-28 11:29 PM
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);
2020-09-25 09:26 AM
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 Accept as Solution on the reply which solved your issue or answered your question.