[STM32L412] CubeMX generated LL code for ADC TEMP channel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-10 11:58 PM
Hi,
I'm using CubeMX 6.11.0 (STM32L4 package version 1.18.0) to generate code for the STM32L412 with LL drivers.
My configuration enables the VREFINT and TEMP channels for ADC1.
The generated function MX_ADC1_Init() contains the line
LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(ADC1), LL_ADC_CHANNEL_VREFINT|LL_ADC_CHANNEL_TEMPSENSOR);
which should actually be
LL_ADC_SetCommonPathInternalCh(__LL_ADC_COMMON_INSTANCE(ADC1), LL_ADC_PATH_INTERNAL_VREFINT | LL_ADC_PATH_INTERNAL_TEMPSENSOR);
This prevents correct temperature channel measurements.
Solved! Go to Solution.
- Labels:
-
ADC
-
STM32CubeMX
-
STM32L4 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-11 11:03 AM - edited ‎2024-04-17 09:38 AM
Hello @ml512 and welcome to the ST Community :smiling_face_with_smiling_eyes:.
Thank you for reporting this. I've escalated this to the concerned team for correction (under internal ticket number 179295).
Best Regards.
STTwo-32
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-11 11:03 AM - edited ‎2024-04-17 09:38 AM
Hello @ml512 and welcome to the ST Community :smiling_face_with_smiling_eyes:.
Thank you for reporting this. I've escalated this to the concerned team for correction (under internal ticket number 179295).
Best Regards.
STTwo-32
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.
