Replies: 19 comments 17 replies
-
So when you connect to the device directly with Putty and then hit the reset button on the ESP and do you see any information coming through at all? |
Beta Was this translation helpful? Give feedback.
-
Can you show a picture of the board? |
Beta Was this translation helpful? Give feedback.
-
oh,I meet the same problem,have any solution? |
Beta Was this translation helpful? Give feedback.
-
Hello |
Beta Was this translation helpful? Give feedback.
-
The previous tests has been made with Thonny The esptool command is 👍esptool.py --port COM27 write_flash --flash_size=detect -fm dio 0x00000 esp8266-20220618-v1.19.1.bin Leaving... |
Beta Was this translation helpful? Give feedback.
-
DIO is the default mode of esptool.py. If uploaded firmware using edptool.py fails, either one has to select a different flash mode, like DOUT, or specify the flash size instead of using detect for the flash size. |
Beta Was this translation helpful? Give feedback.
-
I have been having similar issues with several ESP8266 NodeMCU dev boards. They flash fine but then they constantly reset. I have tried several cables, firmware versions, flash command variations and even different laptops. I have some ESP32 boards that are working great, just the ESP8266 flavors having trouble. ets Jan 8 2013,rst cause:4, boot mode:(3,6) wdt reset |
Beta Was this translation helpful? Give feedback.
-
Hello. I have flashed uPython on my ESP-01 with 1MBytes flash. My board is home made, with RS232C interface (for the other projects I work with) and I use FTDI USB to RS232C interface board. All hardware is confirmed working because I have used this to flash lua.init, AT commands and more and they all work. There is no REPL boot prompt. This is my erase flash command: And the command to flash on ESP-01: Leaving... When connected to Thonny, the message is that the device is busy....the standard error. After going through many web sites and web pages over the last one week, I have nt been able to resolve this issue. I am keen to get uPy working on my ESP. but am stuck with this problem. |
Beta Was this translation helpful? Give feedback.
-
I am having the same issue with 3 Espressif ESP8266-01 boards: I can flash microPython to the boards but in none of the methods of downloading microPython code modules (Thonny, picocom,ampy and repl) was I able to download even a small boot.py module. The errors range from error 1 in Thonny to ampy.pyboard. The port_diag command I ran at the microPython prompt gave: Networking: So this begs the question: does the 8266-01 have enough flash memory to run microPython code. BTW, if I typed in a few commands, like
|
Beta Was this translation helpful? Give feedback.
-
Hello Kevin.
I had a similar problem. After some searching on the Web, this is what I
did:
*ESP-07 – 4MiB -- this is my ESP module*
Erase flash (GPIO grounded, baud 115200, COM3, cmd terminal) - first erase
flash
C:\Users\User>esptool.py --chip esp8266 erase_flash (Enter)
esptool.py v4.5.1
Found 1 serial ports
Serial port COM3
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 18:fe:34:a2:73:66
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 10.9s
Hard resetting via RTS pin...
Flashing version v1.20.0 with 2+ MiB firmware (620KB)
After erasing flash use this command to flash micropython. Use <flash_mode
dout>, <specify flash_freq, flash_size>, give full path of your firmware. I
used the firmware <esp8266-20230426-v1.20.0.bin>
C:\Users\User>esptool.py --chip esp8266 --port COM3 --baud 115200
write_flash --flash_mode dout --flash_freq 26m --flash_size 4MB 0x0
F:\Applications_Software\Python-Micro\esp8266-20230426-v1.20.0.bin
esptool.py v4.5.1
Serial port COM3
Connecting...
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 18:fe:34:a2:73:66
Stub is already running. No upload is necessary.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x0009afff...
Flash params set to 0x0341
Compressed 634016 bytes to 420365...
Wrote 634016 bytes (420365 compressed) at 0x00000000 in 37.5 seconds
(effective 135.3 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Checking flash memory:
C:\Users\User>esptool.py flash_id
esptool.py v4.5.1
Found 1 serial ports
Serial port COM4
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying
again...
Connecting...
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: 18:fe:34:a2:73:66
Uploading stub...
Running stub...
Stub running...
Manufacturer: ef
Device: 4016
Detected flash size: 4MB
Hard resetting via RTS pin...
On Thonny IDE, REPL prompt after message (remove GPIO0 short to ground):
*MicroPython v1.20.0 on 2023-04-26; ESP module with ESP8266*
*Type "help()" for more information.*
Hope this helps.
…On Sat, Sep 30, 2023 at 7:56 AM Kevin ***@***.***> wrote:
Model : ESP8266 NodeMcu V3 Auto-detected Flash size: 4MB
Hello, I'm starting to play with microphyton on esp8266, I install
everything from different guides but always the same effect. I used
different versions of microphytin and different ways of uploading the
firmware. The microphyton upload is successful, but Thony, uPyCraft_V1.1,
or PuTTY detect the device on the COM port but behave as if microhyton is
not installed.
Maybe someone faced this problem?
C:\Users\fudit>esptool.py --port COM4 erase_flash
esptool.py v4.5.1
Serial port COM4
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: b4:e6:2d:55:2c:76
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 12.5s
Hard resetting via RTS pin...
C:\Users\fudit>esptool.py --port COM4 write_flash --flash_size=detect -fm dio 0x00000 E:\esp8266-512k-20220618-v1.19.1.b
in
esptool.py v4.5.1
Serial port COM4
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: b4:e6:2d:55:2c:76
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Flash will be erased from 0x00000000 to 0x00078fff...
Flash params set to 0x0240
Compressed 495084 bytes to 331639...
Wrote 495084 bytes (331639 compressed) at 0x00000000 in 29.2 seconds (effective 135.5 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
C:\Users\fudit>
Afther that Thonny
Device is busy or does not respond. Your options:
- wait until it completes current work;
- use Ctrl+C to interrupt current work;
- reset the device and try again;
- check connection properties;
- make sure the device has suitable MicroPython / CircuitPython / firmware;
- make sure the device is not in bootloader mode.
I am having the same issue with 3 Espressif ESP8266-01 boards: I can flash
microPython to the boards but in none of the methods of downloading
microPython code modules (Thonny, picocom,ampy and repl) was I able to
download even a small boot.py module. The errors range from error 1 in
Thonny to ampy.pyboard.
PyboardError: ('exception', b'', b'Traceback (most recent call last):\r\n
File "", line 1, in \r\nOSError: [Errno 19] ENODEV\r\n')
The port_diag command I ran at the microPython prompt gave:
import port_diag
FlashROM:
Flash ID: 1460c4 (Vendor: c4 Device: 6014)
Flash bootloader data:
Byte @2 <https://github.com/2>: 00
Byte @3 <https://github.com/3>: 20 (Flash size: 1MB Flash freq: 40MHZ)
Firmware checksum:
size: 634000
md5: 4796b17c5b672462934dd33d0e4a1ce7
True
Networking:
STA ifconfig: ('192.168.1.26', '255.255.255.0', '192.168.1.1',
'192.168.1.1')
AP ifconfig: ('192.168.4.1', '255.255.255.0', '192.168.4.1', '192.168.1.1')
Free WiFi driver buffers of type:
0: 8 (1,2 TX)
1: 0 (4 Mngmt TX(len: 0x41-0x100))
2: 8 (5 Mngmt TX (len: 0-0x40))
3: 4 (7)
4: 7 (8 RX)
lwIP PCBs:
Active PCB states:
Listen PCB states:
TIME-WAIT PCB states:
So this begs the question: does the 8266-01 have enough flash memory to
run microPython code. BTW, if I typed in a few commands, like
from machine import Pin
Pin(2, Pin.OUT).value(1)
Pin(2, Pin.OUT).value(0)
Pin(2, Pin.OUT).value(1)
it worked. Also copying and pasting the contents of my boot.py also worked
but I could not download the file over the serial adapter from my desktop.
—
Reply to this email directly, view it on GitHub
<#10974 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAJYFDMOXEBLQI6NEUGUOLX457MXANCNFSM6AAAAAAVTQOVUQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Thanks for all the help. All the preceding worked (but one 8266 seemed to be bad (?), until I got to Thonny and all I can get there is : Process ended with exit code 1. I can execute Python commands at the prompt and even copy, paste and run code but cannot save the modules. Could it be I don't have enough memory on that device? It's only an 8266-01. I am trying to load all the Python code I am currently running on 5 ESP32s but cannot progress beyond this point. I am also trying ampy, ESPHome and Arduino and will try those again. |
Beta Was this translation helpful? Give feedback.
-
ampy and ESPHome just hang. WIth Arduino, after uploading a simple sketch (WiFi scan) and resetting I get: MicroPython v1.20.0 on 2023-04-26; ESP module with ESP8266 So I will now erase the flash memory and redo that. I successfully created configured ESPHome and uploaded it to the 8266. |
Beta Was this translation helpful? Give feedback.
-
Hi Kevin.
ESP-01, by default has less than 1MiB flash. We need 1MiB or more to load
Python. I have 2 units of ESP-01 and replaced the flash with 1 MiB. That
works well.
You can buy the flash memory and replace the original ones.
Regards
…On Sun, 1 Oct, 2023, 8:32 pm Kevin, ***@***.***> wrote:
Thanks for all the help. All the preceding worked (but one 8266 seemed to
be bad (?), until I got to Thonny and all I can get there is : Process
ended with exit code 1. I can execute Python commands at the prompt and
even copy, paste and run code but cannot save the modules. Could it be I
don't have enough memory on that device? It's only an 8266-01.
I am trying to load all the Python code I am currently running on 5 ESP32s
but cannot progress beyond this point. I am also trying ampy, ESPHome and
Arduino and will try those again.
—
Reply to this email directly, view it on GitHub
<#10974 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAJYFECTJKYYQXTJUKJIP3X5GAW3ANCNFSM6AAAAAAVTQOVUQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
As you can see from this, I indeed have 1 Mb flash and is that enough for microPython, which I load with Thonny, and 50k of Python code? It seems strange that I have enough to download 634 kb of microPython and it croaks when I try to store even boot.py, which is under 1 kb. |
Beta Was this translation helpful? Give feedback.
-
The device now shows up on Home Assistant as an ESPHome device via WiFi. I have not configured any pins or actions yet so I will attack that now, though the 8266 is a much more primitive experience than the ESP32. It would be very convenient to have a breakout board rather than jumpers and a breadboard, but that's an issue for a separate topic. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
-
The 1M devices should have a file system of about 400k size. I suggest to use mpremote or s simple terminal emulator like Putty for REPL or when trying to run devices. Thonny does quite a few things under the hood, which may fail, and then you do not know whether it is a problem of the device or of Thonny. |
Beta Was this translation helpful? Give feedback.
-
Latest update using Thonny: For CH340 NodeMCU v3 ESP8266
|
Beta Was this translation helpful? Give feedback.
-
Same pain of garbled mess in the Thonny's console, surprising resolution: this GPIO0 pin used to flash the device: in my case, I grounded it for flashing and kept during flashing (used DIO in thonny's esptool flash options). Then physically disconnected. Then connected IO0 to 3.3V via 10k resistor and booted. Got flood of mess in the Thonny's console. I kind of suspect some loop in my case: I have a tiny board, connected UART over one USB>UART board (to ESP, I connect TX,RX and GND from this); also, on another USB port, I have RPi pico and get 3.3V+GND from that. That means 2 USB ports possibly interfering.. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your information. I gave up on 8266s completely - too much hassle for the small difference in price compared with ESP32s. |
Beta Was this translation helpful? Give feedback.
-
Model : ESP8266 NodeMcu V3
Auto-detected Flash size: 4MB
Hello, I'm starting to play with microphyton on esp8266, I install everything from different guides but always the same effect. I used different versions of microphytin and different ways of uploading the firmware. The microphyton upload is successful, but Thony, uPyCraft_V1.1, or PuTTY detect the device on the COM port but behave as if microhyton is not installed.
Maybe someone faced this problem?
Afther that
Thonny
Beta Was this translation helpful? Give feedback.
All reactions