I use both cores of RP2040 chip. Main one runs main loop and second handles LCD display. I start second one on the thread like
_thread.start_new_thread(taskLCD, (100,0.5))
where taskLCD updates LCD every half os second.
Sometimes when I restart program second core is still working and there is a message:
OSError: core1 in use
Is there way to kill this second core process in advance and elimiate this message? The only way to stop it is to entirely shutdown/depower chip. But, in this case, all info is lost and I do not know what had happen, what had caused the error.