Skip to main content
straubm
Associate II
Solved

Wrong constants in HAL ADC initialization (adc.c)

In adc.c (HAL driver), line 89 there are wrong constants generated:

LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(ADC1), LL_ADC_PATH_VREFINT|LL_ADC_PATH_TEMPSENSOR);

correct is:

LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(ADC1), LL_ADC_PATH_INTERNAL_VREFINT|LL_ADC_PATH_INTERNAL_TEMPSENSOR);

This topic has been closed for replies.
Amel NASRI
Amel NASRIBest answer
ST Technical Moderator

Hi @straubm​ ,

Thanks for sharing the details.

It is simple and you were able to fix it manually, but it needs to be fixed at STM32CubeMX side.

Internal ticket was submitted to keep track of the issue.

Internal ticket number: 133589 (This is an internal tracking number and is not accessible or usable by customers).

-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.

8 replies

Amel NASRI
ST Technical Moderator

Hi @straubm​ ,

Which STM32 product are you using please, or STM32Cube FW package?

-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.
straubm
straubmAuthor
Associate II

Hi Amel,

OMG, I forgot that crucial info.

CubeMX ​and STM32L4(1.17.2).

Btw, no big deal,​ I fixed it manually.​

Amel NASRI
Amel NASRIBest answer
ST Technical Moderator

Hi @straubm​ ,

Thanks for sharing the details.

It is simple and you were able to fix it manually, but it needs to be fixed at STM32CubeMX side.

Internal ticket was submitted to keep track of the issue.

Internal ticket number: 133589 (This is an internal tracking number and is not accessible or usable by customers).

-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.
straubm
straubmAuthor
Associate II

but it needs to be fixed at STM32CubeMX side.

​

That's why I reported it :D

​

Over and out.

Take care.​

Semer CHERNI
ST Employee

Hello @straubm​ 

I want to inform you that the issue is fixed in the 6.7.0 CubeMX release available on the ST web site under this link.

Semer.

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.
KiptonM
Senior III

I followed the link and installed the MX 6.7.0 version. But the STM32CubeIDE still uses 6.6.1-RC2. How do I fix it?

KiptonM
Senior III

Nevermind. It is in the STM32CubeIDE update 1.11.0. Thanks