Skip to content

NRF: USB Disconnect / Reconnect / Enumeration fails during sleep #2855

Closed
@xobs

Description

@xobs

With the most recent patches, issuing time.sleep(x) issues a wfi instruction. This aggressively puts the CPU to sleep. However, this appears to cause USB to no longer enumerate. While this is not an issue with a device that's powered off of USB, if a device has its own battery, then this will prevent the device from enumerating during sleep.

Steps to reproduce

The following code.py should trigger this bug:

from time import sleep
sleep(60)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions