Skip to content

Possible bug: STM32L4 ADC always reading zeroes #90067

Answered by gautierg-st
petarsusac asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @petarsusac,

I don't have a sensortile_box with me right now, but I can tell you that the ADC works on a Disco L475. So normally it should also be working on a L4R9.

First I would advise against having a prescaler of 1 with a synchronous clock. Having a prescaler a 4 should be good enough.
You could also try to increase the acquisition time to ADC_ACQ_TIME_MAX.

By the way did you correctly set the 2V7_EN pin (PF7) ? If not, I'd say this is normal that you see 0 all the time on channel 8 (PA3).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@petarsusac
Comment options

Answer selected by petarsusac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
area: ADC Analog-to-Digital Converter (ADC) platform: STM32 ST Micro STM32
2 participants