Open
Description
RP2040 starts execution on both cores. If entry function contains a "special" definition of static mut
variable, each core takes a mutable reference to it, which is illegal from the Rust point of view.
Here is the relevant piece of #[entry]
code:
https://github.com/rust-embedded/cortex-m-rt/blob/ca4790f40738bcc770285c8080955a2077682078/macros/src/lib.rs#L87-L88