Open ForsakenHarmony opened 7 months ago
A fix sees to be just using StaticCell
static STACK: StaticCell<Stack<4096>> = StaticCell::new();
and then
spawn_core1(p.CORE1, STACK.init(Stack::new()), move || {
let executor1 = EXECUTOR.init(Executor::new());
executor1.run(|spawner| unwrap!(spawner.spawn(core1_task())));
});
https://github.com/embassy-rs/embassy/blob/377e58e408f830f79171a470ba602b7d8bc525e4/examples/rp/src/bin/multicore.rs#L33
https://github.com/rust-lang/rust/issues/114447