Firmware issue

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
wgreybe
Posts: 4
Joined: Wed Sep 07, 2016 1:50 pm

Re: Firmware issue

Post by wgreybe » Mon Sep 12, 2016 6:47 am

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.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Firmware issue

Post by pythoncoder » Mon Sep 12, 2016 7:18 am

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.

jms
Posts: 108
Joined: Thu May 05, 2016 8:29 pm
Contact:

Re: Firmware issue

Post by jms » Mon Sep 12, 2016 8:59 am

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

Post Reply