Skip to content

UsbBus constructor implementations can cause MCU faults in --debug run mode #112

@ianrmhill

Description

@ianrmhill

When constructing a new UsbBus with usb-device 0.2.9 (atsamd21g implementation running on a SAMD21G17D without compile-time optimizations) fatal CPU errors can arise on the target device.

Likely this is due to stack overflow issues as it occurs while allocating a largish chunk of memory and may be a change more for the atsamd-hal/thumbv6m code that implements the UsbBus, but should check.

Some error and stack trace info:
UsbBusATSAMD21G17DDebugInfo.txt

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