Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

esp32s3_usb_otg_hello_world crash - double call of Peripherals::take #28

Closed
@georgik

Description

@georgik

Build command:

cargo +esp-1.56.0.1 espflash --target xtensa-esp32s3-espidf --release --features "esp32s3_usb_otg" --monitor COM5

Crash on line:
https://github.com/ivmarkov/rust-esp32-std-demo/blob/main/src/main.rs#L660

Reason: Peripherals::take().unwrap() - invoked twice:

Workaround: remove one call of Peripherals

Note: espflash was installed by command: cargo install cargo-espflash --git https://github.com/jessebraham/espflash.git --branch fixes/target-arg
Note 2: resulting app is slightly bigger then default partition, after deleting some code, the app fits. We're investigating options to set partition size via espflash.

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