Im not certain whether this is the correct forum for this question, but if anyone can offer assistance, I'd appreciate it.
In short, the firmware is up and running and I have made some changes to the boot.py. Is there a way to check whether there are any errors in the code that is started from the boot.py?
I guess some way to setup an environment (perhaps virtual) that behaves the same as the esp, but that I am able to run scripts as well as see the errors/logs that are being generated from the code.
Thanking in advance.
Firmware issue
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Firmware issue
It's hard to be definite without knowing what you're trying to achieve, but usually Python code can be tested by putting it in a module and importing and running it at the REPL. Once it's working you can put the code in boot.py, although my usual technique is to edit main.py to import the module and run it.
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.
Re: Firmware issue
Stick it in a file and do say
import boot_test
For a lighter but really easy check run it on your host platform.
Jon
import boot_test
For a lighter but really easy check run it on your host platform.
Jon