Page 1 of 2
Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Fri Aug 10, 2018 1:55 am
by blakev
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?
A couple of tests
Posted: Sat Aug 11, 2018 3:37 am
by pythoncoder
If you enter
are your frozen modules listed? If so, they have been compiled into the build.
What happens if you edit
main.py to read
and issue ctrl-D to soft-reboot?
Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Sat Aug 11, 2018 8:58 am
by Roberthh
Did you place boot.py and main.py into frozen bytecode too, or did you leave it in the flash file system?
Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Sat Aug 11, 2018 9:11 pm
by blakev
I didn't freeze them, and I did change them to minimal print statements only....they're just never picked up and ran.
Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Tue Oct 30, 2018 4:39 pm
by krekos
Hello. I'm starting with micropython and i have same problem. When iwas using firmware downloaded directly from Site i have no problem with runing boot.py after restarting board. But when i compile firmware with added modules, ESP start to ignore boot.py which is in flash ...
Please can somebody tell me how to fix it?
Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Tue Oct 30, 2018 6:47 pm
by Roberthh
boot.py and main.py have to reside in the file system.
Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Tue Oct 30, 2018 7:22 pm
by blakev
They're just never "picked up" if you create your own firmware build.
They're on the file system but never ran.
Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Tue Oct 30, 2018 7:26 pm
by krekos
File system? what you mean by that?? boot.py and main.py must be "fozen" in firmware??
When i was trying "Hello word" app, with orginal firmware from Site, i upload boot.py to board using mfpshell. And everything was Ok. but now with my own compiled firmware, boot.py don't run.
Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Tue Oct 30, 2018 7:56 pm
by Roberthh
boot.py and main.py must not be frozen. The ESP8266 has a small FAT file system, which can be used to store data files and scripts.
Re: Custom modules in v1.9.4-443 firmware now boot.py and main.py won't load
Posted: Tue Oct 30, 2018 8:19 pm
by krekos
I have boot.py in FS but ESP always boot to REPL and my boot.py is not started.