cancel
Showing results for 
Search instead for 
Did you mean: 

ADC LL drivers for L4

WQ
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
Imen.D
ST Employee

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".
Thanks
Imen

View solution in original post

1 REPLY 1
Imen.D
ST Employee

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".
Thanks
Imen