8266EX Module with MicroPython in continous loop & REPL non responsive
8266EX Module with MicroPython in continous loop & REPL non responsive
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.
>>>
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.
>>>
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
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
- 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
-
- Posts: 1
- Joined: Sun Mar 29, 2020 5:05 pm
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
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 ?
I've also flashed with 3 differents computer, on windows, mac and ubuntu ans I can't do it.
Can someone help me ?
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
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
Terminal said success and every seems fine until i open with
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?
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
Code: Select all
sudo picocom -b 115200 /dev/ttyUSB0
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?
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
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
Flash it back to the "faulty" boards
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
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
Code: Select all
esptool.py --port /dev/ttyUSB0 --baud 115200 write_flash --flash_size=detect -fm dio 0 flash_4M.bin
ps: If you need the file, please download here. That is the one i extracted and flash it and it's working
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
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
-
- Posts: 5
- Joined: Mon May 04, 2020 4:53 pm
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
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.
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.
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
You could try the various FLASH_MODE settings.
These are dio, qio, dout and qout.
These are dio, qio, dout and qout.
-
- Posts: 5
- Joined: Mon May 04, 2020 4:53 pm
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
thanks for the reply, I've tried them all, same outcome.
Re: 8266EX Module with MicroPython in continous loop & REPL non responsive
Did you use the 1MB variants of the firmware Images, resp. built for 1 MB devices? See http://micropython.org/download/esp8266/