Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
User avatar
Roberthh
Posts: 1122
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load

Post by Roberthh » Tue Oct 30, 2018 8:40 pm

That's strange. In REPL, when you execute the commands:

Code: Select all

import uos
uos.listdir()
Does the list of files show boot.py?

krekos
Posts: 4
Joined: Tue Oct 30, 2018 4:34 pm

Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load

Post by krekos » Tue Oct 30, 2018 9:21 pm

OK. my mistake. when i upload boot.py with example blinking LED it worked. So i start to debuging my boot.py and it seams i have some bug in it.

But i dont saw it because with my firmware, when i use print() it didnt print into console for some reason.

But main probmlem with boot.py seams to be gone now.

kevinkk525
Posts: 225
Joined: Sat Feb 03, 2018 7:02 pm

Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load

Post by kevinkk525 » Wed Oct 31, 2018 9:34 am

I did add the line "import main" into _boot.py in modules directory. This way I can freeze the main.py too.
"boot.py" is not imported though.

BOB63
Posts: 58
Joined: Sat Jul 25, 2015 8:24 pm
Location: Monza , Italy

Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load

Post by BOB63 » Mon Nov 05, 2018 9:17 am

Hi ,
I'm facing the same problem of no REPL after have compiled the firmware ( see post viewtopic.php?f=16&t=5490).

In my case the issue is present also if I compile the firmware w/o add any frozen module.

PYB: soft reboot
Activated UART(0) for REPL
MicroPython v1.9.4-683-gd94aa57 on 2018-11-05; ESP module with ESP8266
Type "help()" for more information.


This is the boot.py :
# This file is executed on every boot (including wake-boot from deepsleep)
import esp
esp.osdebug(None)
import gc
import webrepl
webrepl.start()
gc.collect()


and this is the content of the two directory where the firmware modules are stored :
Image

During the compilation of firmware I don't have any error so I've not idea at all wher could be the issue.
Attachments
Cattura freez.JPG
Cattura freez.JPG (131.72 KiB) Viewed 67 times
Thanks. Roberto

Post Reply