Possible bug: STM32L4 ADC always reading zeroes #90067
-
I'm using the
Could this be a bug in the ADC driver? Maybe a clock configuration issue? Some of the things I tried:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. 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). |
Beta Was this translation helpful? Give feedback.
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).