8266EX Module with MicroPython in continous loop & REPL non responsive

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
user-1
Posts: 2
Joined: Wed Mar 13, 2019 7:43 pm

8266EX Module with MicroPython in continous loop & REPL non responsive

Post by user-1 » Wed Mar 13, 2019 7:55 pm

Hi.

In case this question is a repeat then I am sorry but I am not able to get this thing fixed.

1. 8266EX Board with 1M Flash
2. Flashed & tried both latest stable & daily built esp8266-20190125-v1.10.bin and esp8266-20190313-v1.10-203-g68a5d6fe7.bin
3. After getting the Python prompt (see below), the micropython goes into an infinite loop, loading again and again. In between not taking any commands

4. I tried C-a & going into RAW mode, it does go if I press C-a continously but after 10 seconds it reloads the REPL shell again.
5. I tried with both minicom and picocom & the REPL just does not take in any command but keeps loading itself in infinite loop.


-------debug------ output on ttyUSB0 -b 115200


��c���OSError: [Errno 2] ENOENT
OSError: [Errno 2] ENOENT

MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>
ets Jan 8 2013,rst cause:4, boot mode:(3,6)

wdt reset
load 0x40100000, len 31020, room 16
tail 12
chksum 0xd2
ho 0 tail 12 room 4
load 0x3ffe8000, len 1100, room 12
tail 0
chksum 0x9a
load 0x3ffe8450, len 824, room 8
tail 0
chksum 0xbd
csum 0xbd
����o��;��g|�
�d�prlc�
�|s�d�g�
�'�
d`��r�l�d�
l ��{�l�l�

d`��;�$
���
d$`sd��r$����bČb|$c���b|��Čldc��o��g'��lg�
��l��ld�
��l`�o�����c
d$섇cğ��#
d
�c;l{$s�'���
��g����cs#��b���OSError: [Errno 2] ENOENT
OSError: [Errno 2] ENOENT

MicroPython v1.10-8-g8b7039d7d on 2019-01-26; ESP module with ESP8266
Type "help()" for more information.
>>>

user-1
Posts: 2
Joined: Wed Mar 13, 2019 7:43 pm

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by user-1 » Mon Mar 18, 2019 7:54 am

In addition.

- On a new NodeMCU 8266 4MB flash it works fine, but one of two times same restart wdt (may be watchdog) is seen, but at least I can work.

- The AT firm ware on the problem giving 8266 1MB board works quite ok, though I see often Fatal Exception Errors till I press reset again.
May be its a module issue but:
1. Flashing is perfect with verification of hash.
2. I am seeing this issue in 2 modules 8266 1M

PatéDeSable
Posts: 1
Joined: Sun Mar 29, 2020 5:05 pm

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by PatéDeSable » Mon Mar 30, 2020 4:48 pm

That's exactly the same things for me, i've flashed a nodemcu and wemos d1 mini and they all have the same behaviour

I've also flashed with 3 differents computer, on windows, mac and ubuntu ans I can't do it.

Can someone help me ?

oai
Posts: 2
Joined: Wed Apr 08, 2020 9:30 am

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by oai » Wed Apr 08, 2020 9:44 am

I too have problems and cannot figure it out why it doesn't work

I have these
- Lolin D1 mini v3.1, 4MB (pre-flashed with micropython)
- Lolin NodeMCU V3, 4MB

Few days ago, i took Lolin D1 mini and want to flash to newer version of upython...And i ran these cmd

Code: Select all

esptool.py --port /dev/ttyUSB0  --baud 115200 erase_flash
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect -fm dio 0 esp8266-20170526-v1.9.bin 
Terminal said success and every seems fine until i open with

Code: Select all

sudo picocom -b 115200 /dev/ttyUSB0
I tried different upython, even build compiled one for test. Each of them show different errors.
Mostly OSError: [Errno 2] ENOENT, missing main.py .And it reboots in a loop.

Both of them same issue, i tried another cable but same errors.

1 thing is working. I open arduino IDE and took "blink" and uploaded to these boards. They work fine. The Lolin D1 mini v3.1 had upython before and i could enter terminal without issue.


Anything else i missed?

oai
Posts: 2
Joined: Wed Apr 08, 2020 9:30 am

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by oai » Wed Apr 08, 2020 10:35 am

OK i wrote my problem few minutes ago....and i tried another approach to fix the problem

i do have another board, Lolin D1 pro which is 16MB. Now, i use the esptool to read the firmware from that one and put that to the 2 other that i wrote few moments ago

Read the firmware save it as name flash_4M.bin

Code: Select all

esptool.py -b 115200 --port /dev/ttyUSB0 read_flash 0x00000 0x400000 flash_4M.bin
Flash it back to the "faulty" boards

Code: Select all

esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect -fm dio 0 flash_4M.bin
Now i can get back to the boards and no more loop. Not sure why, can someone explain why this work and is this bad pratice? :?:


ps: If you need the file, please download here. That is the one i extracted and flash it and it's working

User avatar
jimmo
Posts: 1633
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by jimmo » Tue Apr 14, 2020 6:51 am

oai wrote:
Wed Apr 08, 2020 10:35 am
Not sure why, can someone explain why this work and is this bad pratice?
That's a bit surprising!

In your example you were using esp8266-20170526-v1.9.bin which is a really old version.

I assume you tried the v1.12 release version -- http://micropython.org/resources/firmwa ... -v1.12.bin

OptimusGREEN
Posts: 5
Joined: Mon May 04, 2020 4:53 pm

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by OptimusGREEN » Tue May 05, 2020 1:22 pm

Im brand new to micropython and this is whats happening to me also.

So basically I cant do anything.

the chip on my d1 mini is 8266EX and just loops and freezes up the prompt.

Ive tried different boards, different OS, different cable. Just doesnt work.

If someone could help I would be most grateful.

ps. the download file above has been deleted.

User avatar
Roberthh
Posts: 1960
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by Roberthh » Tue May 05, 2020 2:03 pm

You could try the various FLASH_MODE settings.
These are dio, qio, dout and qout.

OptimusGREEN
Posts: 5
Joined: Mon May 04, 2020 4:53 pm

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by OptimusGREEN » Tue May 05, 2020 9:31 pm

thanks for the reply, I've tried them all, same outcome.

User avatar
Roberthh
Posts: 1960
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: 8266EX Module with MicroPython in continous loop & REPL non responsive

Post by Roberthh » Wed May 06, 2020 7:06 am

Did you use the 1MB variants of the firmware Images, resp. built for 1 MB devices? See http://micropython.org/download/esp8266/

Post Reply