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

ESP32/S2/S3: embassy_multiprio.rs example doesn't seem to work as intended when using embassy-time-timg0 #1080

Closed
bjoernQ opened this issue Jan 15, 2024 · 1 comment · Fixed by #1091
Assignees
Labels
bug Something isn't working

Comments

@bjoernQ
Copy link
Contributor

bjoernQ commented Jan 15, 2024

on RISC-V based chips it panics with

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

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

but on ESP32, ESP32-S2 and ESP32-S3 it just doesn't work.

Using embassy-generic-queue-8 instead of embassy-integrated-timers (which is default) makes it work with TIMG0

@jessebraham jessebraham added the bug Something isn't working label Jan 16, 2024
@bjoernQ bjoernQ changed the title embassy_multiprio.rs example doesn't seem to work as intended ESP32: embassy_multiprio.rs example doesn't seem to work as intended Jan 17, 2024
@bjoernQ bjoernQ changed the title ESP32: embassy_multiprio.rs example doesn't seem to work as intended ESP32/S2/S3: embassy_multiprio.rs example doesn't seem to work as intended when using embassy-time-timg0 Jan 17, 2024
@bjoernQ
Copy link
Contributor Author

bjoernQ commented Jan 17, 2024

Seems like TG0_T1_LEVEL never triggers in the TIMG0-time-driver

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants