Closed gauteh closed 8 months ago
See: https://github.com/gauteh/defmt-serial/pull/10 for example code (not really working yet).
you need to add a dependency on portable_atomic
and enable either the unsafe-assume-single-core
feature (if you're ONLY using 1 core of the 2 cores in the rp2040!), or the critical-section
feature (and then ensure you've enabled a multicore-safe critical-section implementation, such as feature critical-section-impl
of embassy-rp
)
Ok, thanks!
Trying to use
StaticCell
with this pi-pico example: https://github.com/gauteh/defmt-serial/blob/main/example-pi-pico/src/main.rs fails with: