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.
Post Reply
blakev
Posts: 2
Joined: Fri Aug 10, 2018 1:51 am

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

Post by blakev » Fri Aug 10, 2018 1:55 am

I was running into some memory issues so I added a couple of my modules to `/modules` before creating a custom firmware.

Flashing and running into the REPL via serial works just fine. However, I'm no longer able to run a `boot.py` or a `main.py`

My custom modules are there, and they work as expected, but those files are ignored and it always dumps right into the REPL.

[code]
PYB: soft reboot
Activated UART(0) for REPL
MicroPython v1.9.4-443-gc1c798f on 2018-08-10; ESP module with ESP8266
Type "help()" for more information.
>>>
[/code]

Help?

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

A couple of tests

Post by pythoncoder » Sat Aug 11, 2018 3:37 am

If you enter

Code: Select all

>>> help('modules')
are your frozen modules listed? If so, they have been compiled into the build.

What happens if you edit main.py to read

Code: Select all

print('In main.py')
and issue ctrl-D to soft-reboot?
Peter Hinch

User avatar
Roberthh
Posts: 1044
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 » Sat Aug 11, 2018 8:58 am

Did you place boot.py and main.py into frozen bytecode too, or did you leave it in the flash file system?

blakev
Posts: 2
Joined: Fri Aug 10, 2018 1:51 am

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

Post by blakev » Sat Aug 11, 2018 9:11 pm

I didn't freeze them, and I did change them to minimal print statements only....they're just never picked up and ran.

Post Reply