Skip to content

changing USB descriptors on ESP32S2 crashes #4746

@Neradoc

Description

@Neradoc

Tested on the Feather S2. I expected that trying to use more endpoints than available results in reset to safe mode. Here are a few boot.py that cause issues. (Manual safe mode recovers).

import usb_cdc
usb_cdc.enable(console=True, data=True)
  • reset loop (status LED alternates purple and black)
import usb_hid
usb_hid.disable()
import usb_cdc
usb_cdc.enable(console=True, data=True)
  • code.py runs
  • device connected seen on USB (ioreg) but no drive, no serial

Those work as expected:

import usb_hid
usb_hid.disable()
import usb_cdc
usb_cdc.enable(console=True, data=False)
import usb_hid
usb_hid.disable()
import storage
storage.disable_usb_drive()
import usb_cdc
usb_cdc.enable(console=True, data=True)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy