Skip to content

Arduino Framework disables Dead Battery Support #20

Open
@klaus-liebler

Description

@klaus-liebler

Grüezi in die Schweiz,

thank you, Manuel, for this wonderful library! I am using it in my project https://github.com/klaus-liebler/labathome. The usage scenario requires Dead Battery Support.

I did not get this feature working and after investigating it, I discovered this: stm32duino/Arduino_Core_STM32@1f5cb30

So, the Arduino Framework disables the Dead Battery PullDowns in a very early initialisation phase, when your stack has not yet initialized the UCPD peripherial. So, the USB-C PSU shuts down, the STM32 resets and presents the PullDowns again...which awakes the PSU and the CPU boots again --> endless reboots. Unfortunately, the only way to overcome this Arduino-paternalism is to comment out the particular line of code.
Of cource, this is not a direct issue of your library, but just in case others stumble on it.

Regards,

Klaus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions