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

MicroPython • Re: PicoW MicroPython project: I added a bunch of debug lines to trace a hang and it somehow fixed my crashes

$
0
0
Well, multithreading is not easy, anywhere, especially when the processors are fighting for the same resources, it's called Race condition https://en.wikipedia.org/wiki/Race_condition. With an operating system, it just happens to be almost hidden from you.

You are already doing a lot of demanding things, maybe you have reached the limits of the default MicroPython, which is far from being most efficient, and adds more fights between cores (especially gc). You could try to optimize. Or depending on your abilities/determination move to C, that won't be easy, but it can come to be very rewarding (10x). :)

Or simply move to a more resourceful like Pi Zero 2 W.

Statistics: Posted by gmx — Sat Nov 30, 2024 7:28 pm



Viewing all articles
Browse latest Browse all 3881

Trending Articles