Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running embassy_multiprio with esp32c3 #1088

Closed
Adancurusul opened this issue Jan 17, 2024 · 3 comments
Closed

Error when running embassy_multiprio with esp32c3 #1088

Adancurusul opened this issue Jan 17, 2024 · 3 comments

Comments

@Adancurusul
Copy link

I tried to add a priority to the task in my project but the runtime reported an error.
So I run the embassy_multiprio example in esp32c3-hal
It compiles fine but gives an error when running.This is the same as the error reported in my project

!! A panic occured in 'C:\Users\User\.cargo\registry\src\index.crates.io-6f17d22bba15001f\embassy-executor-0.4.0\src\raw\mod.rs', at line 331, column 30

PanicInfo {
    payload: Any { .. },
    message: Some(
        unwrap of `driver::allocate_alarm()` failed: NoneError,
    ),
    location: Location {
        file: "C:\\Users\\User\\.cargo\\registry\\src\\index.crates.io-6f17d22bba15001f\\embassy-executor-0.4.0\\src\\raw\\mod.rs",
        line: 331,
        col: 30,
    },
    can_unwind: true,
    force_no_backtrace: false,
}

Backtrace:

my Cargo.toml:

[package]
name = "c3-multipri-demo"
version = "0.1.0"
authors = ["Chen Yuheng <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"

[dependencies]
esp32c3-hal = { version = "0.14.0", features = ["async", "embassy", "embassy-executor-thread", "embassy-time-timg0","embassy-executor-interrupt"] }
esp-backtrace      = { version = "0.9.0", features = ["esp32c3", "panic-handler", "exception-handler", "print-uart"] }
esp-println = { version = "0.7.1", features = ["esp32c3"] }
embassy-executor = { version = "0.4.0", features = ["nightly"] }
embassy-time   = { version = "0.2.0"}
embassy-sync = "0.5.0"
embedded-hal-async = "=1.0.0-rc.2"
embedded-hal = "=1.0.0-rc.2"
embedded-io-async = "0.6.1"
static_cell = { version = "2.0.0", features = ["nightly"] }
critical-section = "1.1.2"
portable-atomic = "1.5.1"

@bjoernQ
Copy link
Contributor

bjoernQ commented Jan 17, 2024

Should work with embassy-time-systick since it supports more alarms

@Adancurusul
Copy link
Author

Thanks, I changed to embassy-time-systick and he's working fine!

@bjoernQ
Copy link
Contributor

bjoernQ commented Jan 17, 2024

Glad to hear it's working now 👍

@bjoernQ bjoernQ closed this as completed Jan 17, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants