logo elektroda
logo elektroda
X
logo elektroda

[Solved] Reading flash content from ESP8266 board - project data recovery

elektrofil 2607 36
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20319818
    elektrofil
    Level 18  
    Hello.
    Is there any way to read the flash content from the esp8266 board
    Reading flash content from ESP8266 board - project data recovery .
    I ask because I have lost the source of the project, and I am keen to quickly program a few more pieces.
  • ADVERTISEMENT
  • Helpful post
    #2 20319836
    csvrbntyu
    Level 30  
    Yes, but you can only read the .bin file . For duplication ideal, but you won't make changes if that's what you want.
  • #3 20319849
    elektrofil
    Level 18  
    That's enough for me, will you reveal the reading method?
  • Helpful post
    #4 20319882
    csvrbntyu
    Level 30  
    Use the ESPtool.py. Read command, if there are problems you will need to set some other things. The file will save in the default esptool folder. You also upload with this.
  • #5 20319907
    elektrofil
    Level 18  
    I understand that I am to use the command:
    Code: AVR assembler
    Log in, to see the code
    .
    and here I have a problem
    Reading flash content from ESP8266 board - project data recovery .
  • ADVERTISEMENT
  • Helpful post
    #6 20319929
    csvrbntyu
    Level 30  
    "COM" not "com". Well, and check that you haven't got the port number wrong.
  • #7 20319934
    elektrofil
    Level 18  
    Unfortunately it doesn't work, even if I add the word PORT before COM6
    Reading flash content from ESP8266 board - project data recovery .
    It is definitely on COM6.
  • Helpful post
    #8 20319993
    raks0
    Level 30  
    You are in Python interactive mode. Have you installed esptool via pip at all?
  • #9 20320008
    elektrofil
    Level 18  
    I freely admit that I have not installed it. I am completely green in this subject.
    I use the website:
    Link .
    but in cmd does not work:
    python setup.py install
    
    pip install pyserial
    

    passed:
    Code: Dos
    Log in, to see the code
    .
  • Helpful post
    #10 20320072
    raks0
    Level 30  
    How to install Python and esptool Link
  • #11 20320244
    elektrofil
    Level 18  
    Thank you for the video, I have installed, but I have a problem with the detection of the esp8266 module.The problem is already in the MK ESP Tool.
    Namely, it is detected in the COM Port list, but not detected through Check ESP.
    Reading flash content from ESP8266 board - project data recovery .
    Reading flash content from ESP8266 board - project data recovery .
    Same in python
    Reading flash content from ESP8266 board - project data recovery
  • #12 20320283
    raks0
    Level 30  
    GPIO0 connected to GND? maybe try a lower Baudrate
  • #13 20320289
    elektrofil
    Level 18  
    yes, connected, and lower baudrate e.g. 9600 or go even lower?
    Reading flash content from ESP8266 board - project data recovery .
  • #14 20320328
    raks0
    Level 30  
    What USB UART converter do you have? maybe the driver needs to be newer, check the connections again. ESP powered from the converter?
  • ADVERTISEMENT
  • #15 20320338
    elektrofil
    Level 18  
    Programmer bought (probably on ch340), with arduino programs without problem.
    Reading flash content from ESP8266 board - project data recovery .
    It has jumpers on the underside.
  • #16 20320463
    xury
    Automation specialist
    Without exaggeration, the baudrate is a minimum of 115200.
    Put it into flashmode manually, i.e. connect gpio0 to gnd and also put gnd on reset for a while. Then the esp8266 must enter flash mode. Supposedly these programmers should do it themselves via dtr and rts pin, but many times I didn't want autoreset to work either.
    What is the best way to do this?
    Solder a piece of wire to the GND of the programmer. At the other end, preferably fit a piece of stiff wire such as a male dupont end, or a needle etc. On the esp-01, gpio0 and reset are in one column.
    You attach the tip to the gpio0 and without detaching from it, you move it towards RST by touching it for a moment and then move it back while still in contact with the gpio0. After a while you can also disconnect the gnd from gpio0 being careful not to touch the reset again.
    So, in short: touch GND to gpio0 and, "sliding" the "bare" wire over gpio0, touch RST for a moment. Then we undo the pin and move the whole wire away from the board.
    After this operation, the esp-01 is in flash mode and you can read the flash.
  • ADVERTISEMENT
  • #17 20320481
    elektrofil
    Level 18  
    Ok thank you for the comprehensive instructions, it's late today and you have to get up at 4 o'clock for work
  • #18 20320553
    raks0
    Level 30  
    I'm still puzzled as to why you are running this in such a complicated way via PowerShell and why your version of esptool is 4.5-dev.
  • #19 20320864
    elektrofil
    Level 18  
    As this is new to me and I don't know any other way of commissioning, I'm just learning it, so if you can give me some tips.
  • #23 20321384
    elektrofil
    Level 18  
    I uninstalled and what next?
  • #25 20321402
    elektrofil
    Level 18  
    Version 4.5 is still available
    Reading flash content from ESP8266 board - project data recovery
  • #26 20321432
    raks0
    Level 30  
    If pip uninstall doesn't work then delete grandpa manually in the c:\python311\lib\site-packages directory delete the folders starting with esp.
    reboot your computer, and then esptool.py version as standard

    If that doesn't help then uninstall Python delete c:python311. And install everything from scratch
  • #27 20321454
    elektrofil
    Level 18  
    So I ended up manually deleting c:python311
  • #29 20321501
    elektrofil
    Level 18  
    Ok. I have version 4.4
  • #30 20321505
    raks0
    Level 30  
    It remains to see if it works with esp8266, if not then I have no more ideas, in any case good luck.

Topic summary

The discussion revolves around recovering flash content from an ESP8266 board after the user lost the project source code. The primary method suggested for reading the flash is using the esptool.py command-line utility, specifically the command `esptool.py -p PORT -b 460800 read_flash 0 0x100000 flash_contents.bin`. Users encountered issues with port detection and baud rate settings, with recommendations to ensure correct COM port usage and to connect GPIO0 to GND for flash mode. The conversation also touched on installing Python and esptool, troubleshooting detection problems, and using alternative tools like Tasmotizer for backup. The user ultimately managed to read the flash but faced connectivity issues requiring a fresh connection each time.
Summary generated by the language model.
ADVERTISEMENT