Closed kdsch closed 3 years ago
After carefully reading rtic-expansion.rs
, I realized that RTIC is taking control of the peripherals (device: atsamd51p::Peripherals::steal(),
) and making them accessible via Context
. Somehow I had managed to ignore this critical aspect of RTIC usage!
After modifying my program to use the context parameter instead of calling take()
, it works!
I'm a newcomer to Rust and embedded Rust. There's a good chance I have made a basic mistake.
See my project (RTIC integration branch).
I expect a PWM signal on D13 (red LED). Without RTIC, it works. With RTIC, nothing happens.
I do not yet have a semihosting or breakpoint debugger setup, so my debugging options are extremely limited. Unfortunately, QEMU does not emulate the SAMD51 microcontroller.
For reference,
target/rtic-expansion.rs
: