Skip to content

UART attach blocks deep sleep, no way to override #10059

Closed
@janjongboom

Description

@janjongboom

Description

I'm not sure if this is a feature, a bug, or something that should be in the documentation...

When attaching an interrupt to UART (through attach) this will always lock deep sleep. According to @0xc0170 this is because:

not every serial is capable of waking up from deep sleep, also the baudrate (higher baudrate might not be achievable running from low power clocks) might be affected thus by default it locks.

However, we don't make this distinction in code. Regardless of the baud rate or the board features we always lock deep sleep. Could we get:

  1. An overview of which features a board requires to enable deep sleep while also having an IRQ on the UART.
  2. What considerations you need to take into account when designing such a system (e.g. baud rate considerations).
  3. An option to override this behavior.

Issue request type

[X] Question
[ ] Enhancement
[ ] Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions