esp8266 not booting

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
fstengel
Posts: 55
Joined: Tue Apr 17, 2018 4:37 pm

Re: esp8266 not booting

Post by fstengel » Sun Mar 10, 2019 8:53 am

If I understand well:
  • Small text file : OK
  • Large file(s) : not OK
I gather you are using a wemos mini with 4M flash, so space should not be a problem. Try this:
  1. Create a text (no funny characters, plain ascii 32->126) file of about 25-50k (this lorem ipsum generator could do the trick)
  2. Send it, and see if everything works (reboot etc.)
  3. If it works, send a duplicate and gradually fill the filesystem.
If you are able to send at least as much data as the size of your files and everything goes well, then something could be wrong with one of your files (funny character ?)

nagylzs
Posts: 40
Joined: Sat Jan 19, 2019 8:01 pm

Re: esp8266 not booting

Post by nagylzs » Sun Mar 10, 2019 10:52 am

Funny charater? What do you mean? There are gzip compressed files that I need to upload. I'm 100% sure that they use all 256 possible byte values. But this should not be a problem at all.

nagylzs
Posts: 40
Joined: Sat Jan 19, 2019 8:01 pm

Re: esp8266 not booting

Post by nagylzs » Sun Mar 10, 2019 11:17 am

If I upload this file https://pastebin.com/PMR4z599 right after reflashing the firmware and the file system, then it won't boot. This is a 853 byte file.

Can somebody please try to upload this file to an ESP8266EX and test if it boots up?

I still don't see how this file can cause the any problem. It is never executed by the interpreter...

And yet, this is what happening! Apparently, I can upload anything (including binary gzip files) and everything works. But if I upload this main.py file, then it won't boot.

Christian Walther
Posts: 169
Joined: Fri Aug 19, 2016 11:55 am

Re: esp8266 not booting

Post by Christian Walther » Sun Mar 10, 2019 11:32 am

nagylzs wrote:
Sun Mar 10, 2019 11:17 am
It is never executed by the interpreter

this main.py file
You are contradicting yourself here. If the file is named main.py, then it is executed by the interpreter. Which of the two is it?

nagylzs
Posts: 40
Joined: Sat Jan 19, 2019 8:01 pm

Re: esp8266 not booting

Post by nagylzs » Sun Mar 10, 2019 11:38 am

This might be the root of all evil. I thought boot.py is the one that is executed automatically?

nagylzs
Posts: 40
Joined: Sat Jan 19, 2019 8:01 pm

Re: esp8266 not booting

Post by nagylzs » Sun Mar 10, 2019 11:45 am

Oh I see now. Both boot.py and main.py are executed. It is my fault then. I did not know, and I have accidentally uploaded a main.py file that enters an invisible infinite loop. :-(

Christian Walther
Posts: 169
Joined: Fri Aug 19, 2016 11:55 am

Re: esp8266 not booting

Post by Christian Walther » Sun Mar 10, 2019 12:54 pm

Glad you got it solved! :)

nagylzs
Posts: 40
Joined: Sat Jan 19, 2019 8:01 pm

Re: esp8266 not booting

Post by nagylzs » Sun Mar 10, 2019 1:49 pm

Thank you

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: esp8266 not booting

Post by dhylands » Sun Mar 10, 2019 2:20 pm

Getting errors during the first test (I.e checking if ubinascii worked or not) usually means that rshell was unable to get into the REPL).

Post Reply