Multiple tasks/processes on core1?

⚓ Rust    📅 2026-01-22    👤 surdeus    👁️ 1      

surdeus

I'm experimenting with multicore, and I got one (async) task running on core1, but is it possible to run more?

When I try, I get:

error[E0382]: use of moved value: `p.CORE1`
   --> src/drive-by-wire.rs:168:9
    |
107 |         p.CORE1,
    |         ------- value moved here
...
168 |         p.CORE1,
    |         ^^^^^^^ value used here after move
    |
    = note: move occurs because `p.CORE1` has type `Peri<'_, CORE1>`, which does not implement the `Copy` trait

For more information about this error, try `rustc --explain E0382`.
error: could not compile `drive-by-wire` (bin "drive-by-wire") due to 1 previous error

First p.CORE1 is from the first (successful) spawn of a task on core1. The other is the second one..

2 posts - 2 participants

Read full topic

🏷️ Rust_feed