2023-04-10 11:38 AM
MX generated ADC drivers like this:
/** Configure Regular Channel
*/
LL_ADC_REG_SetSequencerRanks(ADC1, LL_ADC_REG_RANK_1, LL_ADC_PATH_INTERNAL_VREFINT);
LL_ADC_SetChannelSamplingTime(ADC1, LL_ADC_PATH_INTERNAL_VREFINT, LL_ADC_SAMPLINGTIME_247CYCLES_5);
LL_ADC_SetChannelSingleDiff(ADC1, LL_ADC_PATH_INTERNAL_VREFINT, LL_ADC_SINGLE_ENDED);
it uses macro LL_ADC_PATH_INTERNAL_VREFINT, not LL_ADC_CHANNEL_VREFINT. As the results, the internal channels are not ADC'ed right, TS is 200+ degree, VREF is always 3.300V and VBAT is 3.6xxV. It happened on L4 series, not WB55 (where the macro is LL_ADC_CHANNEL_VREFINT). -wq
Solved! Go to Solution.
2023-04-11 03:31 AM
Hello @Community member ,
Thanks for your post.
I reproduced this issue and created an internal ticket ID 149468 in order to fix it.
(PS: ID 149468, is an internal tracking number and is not accessible or usable by customers).
Thanks again for your contribution.
Imen
2023-04-11 03:31 AM
Hello @Community member ,
Thanks for your post.
I reproduced this issue and created an internal ticket ID 149468 in order to fix it.
(PS: ID 149468, is an internal tracking number and is not accessible or usable by customers).
Thanks again for your contribution.
Imen