Skip to main content
WQ_it
Associate III
April 10, 2023
Solved

ADC LL drivers for L4

  • April 10, 2023
  • 1 reply
  • 1033 views

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

This topic has been closed for replies.
Best answer by Imen.D

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

1 reply

Imen.DBest answer
Technical Moderator
April 11, 2023

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

"When your question is answered, please close this topic by clicking ""Accept as Solution"".ThanksImen"