I integrated upy into my project(Thanks for your great work). upy works well in my project process.
In one running process, the python script file(A in short) could be reloaded when it was modified. But another python script file(B in short) that imported by A could NOT be reloaded when it was modified. Therefore I want to reset "the contex" of upy.
I have tried to use mp_deinit and then re-initialize upy as the same as I do when the process startup. But when I invoke a python script again, MP_STACK_CHECK(mp_stack_check) will fail.
Thank you.
dpgeorge REPLY ME AT GITHUB ISSUES:
dpgeorge:
This type of question is better suited to https://forum.micropython.org
A short answer: there are lots of examples of how to do a "soft reset" in the bare-metal ports, eg stm32, esp8266, esp32, nrf.