Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4909

MicroPython • Re: multi-core bug or feature?

$
0
0
I think it's MicroPython running REPL (USB) on Core0 only. If Core 1 steals USB ... it's predictable, you probably get in a spinlock (core 1 blocking the USB hardware), or worse in a so called dead-lock.
You can try to run/switch REPL on UART and leave it on Core0.

While testing, try to put a delay in main.py before initializing multicore, it might give you a chance to stop the program and rescue REPL before locking you out (CircuitPython does this when booting, nice feature).

Statistics: Posted by gmx — Wed Dec 04, 2024 11:00 pm



Viewing all articles
Browse latest Browse all 4909

Trending Articles