Skip to content

analogin_device.c doesn't clear internal buffer for Vref #9504

Closed
@RobVlaar

Description

@RobVlaar

Description

  • type: bug

Bug

Target
STM32L072CZ

Files
analogin_device.c
stm32l0xx_hal_adc.c

mbed-os
5.10.0

Issue
We use the smt32l072cz for a couple of applications and it uses about 3µA. With a new application we want to use the internal Vref. The usage of it is verry simple but the issue is, it doesn't automaticly turns off its internal buffer when the analog in is destructed. With its internal buffer still on it uses an additional 10µA.
We have fixed the issue by configuring the channel with a rank of ADC_RANK_NONE before the adc data is returned. When configuring with a ADC_RANK_NONE the internal buffer is turned off in stm32l0xx_hal_adc.c and doesn't use the addidtional 10µA.

Question
Should I do a pull request for the issue or should it be fixed somewhere else?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions