How To Read Bin File From ESP32 and ESP8266

Поделиться
HTML-код
  • Опубликовано: 23 июл 2023
  • In this video, I'll show you how to extract hex code from an ESP32 or ESP8266. We'll use the ESP32 development module for this demonstration, but the steps are the same for other devices. After uploading a blink sketch to the ESP32, we'll extract the code and upload it to another module. This process allows easy cloning of functionality across multiple devices, saving you time and effort in programming. Let's get started!
    --------------------------------------------------------------------------------------------------------------------
    Commands Used in This Project
    --------------------------------------------------------------------------------------------------------------------
    1. Read Flash Size:
    esptool.exe --port COM3 --baud 921600 flash_id
    2. Read Bin File From Flash Memory:
    esptool.exe --port COM3 --baud 921600 read_flash 0 0x400000 esp32blink.bin
    3. Write Bin File on Flash Memory:
    esptool.exe --chip esp32 --port COM3 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 D:\esp32blink.bin
    --------------------------------------------------------------------------------------------------------------------
    Useful Video Links
    --------------------------------------------------------------------------------------------------------------------
    How To Extract Hex File From Arduino
    • How To Extract Hex Fil...
    --------------------------------------------------------------------------------------------------------------------
    Social Media Links
    --------------------------------------------------------------------------------------------------------------------
    GitHub:
    github.com/ahmadlogs/
    RUclips:
    ruclips.net/user/ahmadlogs?sub...
    --------------------------------------------------------------------------------------------------------------------
    Disclaimer
    --------------------------------------------------------------------------------------------------------------------
    Disclaimer: All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.
    #ESP32 #ESP8266 #Arduino

Комментарии • 82

  • @mikoajgoebiowski9028
    @mikoajgoebiowski9028 Месяц назад +1

    It really worked, even on ESP8266!
    Now I address it to the other viewers:
    regardless of whather you use, ESP8266 or ESP32, you should install ESP32 support on Arduino IDE ->Boards Manager, do all as Ahmad did.
    Later in "Write Bin File" (8:49) instead of "--chip esp32" use "--chip esp8266"
    And that's all the difference :)

  • @nicolassun7938
    @nicolassun7938 4 месяца назад +3

    I tested it and it works great !
    Many thanks for your very good how to.
    Continue to make very good video like this.😁👍

  • @kees-ft1yb
    @kees-ft1yb 3 месяца назад +1

    Great work. Just what i was looking for.

  • @Belkhir-Beg
    @Belkhir-Beg 8 месяцев назад +1

    شكرا لك. شرح جميل وممتع

  • @anilgarg57
    @anilgarg57 9 месяцев назад +2

    Well done Ahmad. Good video.

  • @milodelpozo7727
    @milodelpozo7727 27 дней назад

    very usefull for backups of 3D printer board versions

  • @elektron2kim666
    @elektron2kim666 3 месяца назад

    Very useful. I need to back up my Pico's and rearrange some M5Stack stuff.

  • @user-em6qj9jz4p
    @user-em6qj9jz4p 3 месяца назад +3

    Hi, Do you also have video link for encrypting ESP32 to prevent cloning. Thank you.

  • @agenpulsa70
    @agenpulsa70 8 месяцев назад

    Thank you

  • @user-eg1gw7yv8h
    @user-eg1gw7yv8h 5 месяцев назад

    Thanks a lot

  • @user-sv4yr4xf7g
    @user-sv4yr4xf7g 5 месяцев назад

    thanks bro

  • @shakerileiwat4341
    @shakerileiwat4341 11 месяцев назад

    Great 👍👍👍

  • @sevketkarayilan
    @sevketkarayilan 7 месяцев назад +3

    How to prevent clone my esp code?

  • @TrackAnimatorsMEDIA
    @TrackAnimatorsMEDIA 4 месяца назад

    I have a question for you.
    Do you know of a way to install a OS from a keyboard like the Ensoniq EPS Classic or old Akai MPC drum machines on an ESP 32?

  • @opm905
    @opm905 11 месяцев назад +2

    Ty sir 🙏🙏🙏 you are really genius... ty for response my comment.... And finally solved my problem....1st I am seeing this type of video...what is your qualifications sir in electronics field

    • @AhmadLogs
      @AhmadLogs  10 месяцев назад +1

      So nice of you. I am just a learner

    • @TechTamilIOT
      @TechTamilIOT 9 месяцев назад

      i need your mail id@@AhmadLogs

    • @CiroPeixoto
      @CiroPeixoto 6 месяцев назад

      Humildade é sinal de grandeza !!! 😊parabéns pelo vídeo e a informação original !!
      Nunca pensei que seria tão fácil duplicar programas no ESP 😳Vou proteger melhor meus produtos !!!

  • @049-rizqipratama7
    @049-rizqipratama7 10 месяцев назад

    Hello Sir, Please share your program that to use in the dekstop

  • @sulesharad
    @sulesharad 10 месяцев назад

    I am trying to do ,but after uploading the file error is coming ,in error esp8266tool.exe file not showing.
    Secondly from note book copy portion pasting in windows and press enter, direct command window is opening.

  • @stevenbennett6123
    @stevenbennett6123 Месяц назад

    Excellent, very helpful. I notice the download time is much longer than the upload time, is this because all 4Mb is downloaded but only the actual sketch binary part is uploaded?

  • @jaisiddhisuperpowerpltd1872
    @jaisiddhisuperpowerpltd1872 Месяц назад

    are you from Pakistan, I am from India, I love your video so much, you do great projects

  • @PandaDIY1
    @PandaDIY1 4 месяца назад

    Can you do a video how to extract hex code from bl602 chip

  • @electrik77
    @electrik77 3 месяца назад

    Genial!

  • @woodyouloveit-fe1sw
    @woodyouloveit-fe1sw 6 месяцев назад

    Can it be doable for esp8266-01...

  • @UlrichBarlow
    @UlrichBarlow 2 месяца назад

    Hello ..thank you for posting this .I need your advise with a problem , can do the same for ST12C5A60S

  • @carlovillois23
    @carlovillois23 14 дней назад

    Tks, very usefull but for the LOLIN C3 MINI the read operation start without pressing the RESET BUTTON and the procedure doesn't arrived to the end of the memory (error come after a while...). Someone can help me?

  • @sulesharad
    @sulesharad 10 месяцев назад

    Good day sir,
    In this tutorial you have used esp32 module and you said steps will be same for esp8266 .that means wherever you have mentioned esp32 in prosses. i should mentioned esp8266 instead of esp32 right.
    Secondly you have select randomly esp32 development board, for esp8266 which board i should select.
    Please guide
    With regards
    Sharad

    • @chrisb.9865
      @chrisb.9865 10 месяцев назад

      hello sharad,
      for the esp8266 you can do it exactly like he did.
      I just did it and it worked fine using the esp32 module and dev board config.
      but with my esp8266 board i had to slower the baud rate to 230400.
      best regards,
      chris

  • @mainegrower
    @mainegrower Месяц назад

    I need to be able to edit the extracted file. How do I convert it so I can bring it back into arduino studio to edit it.

  • @sulesharad
    @sulesharad 10 месяцев назад

    How to change ssid and password in nodemcu8266 bin file

  • @user-kn8bd2vn8c
    @user-kn8bd2vn8c 11 месяцев назад

    What software is used to write the program for the BIOS of a desktop computer ?

    • @mak8221
      @mak8221 5 месяцев назад

      Dammm mate i was i taught i have Alzheimer for a second! 🤣🤣🤣

  • @saadelm2955
    @saadelm2955 5 месяцев назад

    How i Can upload bin file to Arduino nano ..brother

  • @aekaek8759
    @aekaek8759 2 месяца назад

    عمل رائع و ممتاز .
    أخ أحمد هل هناك طريقة لتحويل hex إلى code source .وشكرا مجددا

  • @satishpawa
    @satishpawa 2 месяца назад

    Is it possible to convert the download file of the esp 32 or esp 8266 to the Arduino ide sketch ino file
    Means convert.bin file to .ino file
    Please respond if it is possible

  • @ahmedsameerhassan
    @ahmedsameerhassan 5 месяцев назад

    Is there any way to prevent that, I don't want any One to use My code

  • @santoshmagicshop
    @santoshmagicshop 11 месяцев назад

    btao bhai keise kre

  • @praveenb9048
    @praveenb9048 6 месяцев назад

    Hi, I am using a Raspberry Pi for development. The path to esptool points to a Python file, esptool.py. I tried to do "python esptool.py -version" etc, but it throws an error. Any ideas how to use the python version of esptool? Thanks!

    • @praveenb9048
      @praveenb9048 6 месяцев назад

      I tried running esptool.py in the same original folder, and the 'version' command works ok. Is it safe to use from this location for the rest of the process?

    • @praveenb9048
      @praveenb9048 6 месяцев назад

      OK, I just copied all other stuff from the same folder along with esptool.py to another folder, and it works.

  • @permanenthairsystemludhian5143
    @permanenthairsystemludhian5143 2 месяца назад

    My esp32 read file 29%after heng what is problem ???

  • @woolfy02
    @woolfy02 4 месяца назад

    I had a project on my ESP8266 that works but, I lost the code after my HD crashed. Is it possible to retrieve the code from the device, so I can make a copy and edit/save it? (I really want the code back) I spent a lot of time working on that code and, I hope I can bring it back from the device.

    • @harshverma_i
      @harshverma_i 4 месяца назад

      Hey bro? You get the code??

    • @woolfy02
      @woolfy02 4 месяца назад

      @@harshverma_i No. I was never able to get it back.

  • @dragon-cu6cc
    @dragon-cu6cc 11 месяцев назад

    Hello
    how do i re-edit the edited bin file

    • @AhmadLogs
      @AhmadLogs  11 месяцев назад

      it is not possible

  • @hristodimitrov9431
    @hristodimitrov9431 11 месяцев назад

    Please, make video that shows how to encrypt flash.

  • @ramrode5350
    @ramrode5350 11 месяцев назад +1

    Sir agar muje esp32 ke andar ka code copy karna ho without lost code jo ki us esp me already upload hai to mai kaise karu mere ek project me maine code upload kiya tha but vo laptop mese Delete ho gaya aur muje vo code urgent chahiye isliye aapko pucha please bataiyega sir 🙏

    • @AhmadLogs
      @AhmadLogs  11 месяцев назад

      use the same method

    • @ramrode5350
      @ramrode5350 11 месяцев назад +1

      ​@@AhmadLogs par isse mere old Esp mese purana code Delete to nahi hoga na kyu ki agar vo Delete ho gaya to mera bohot jyada nuksan ho jayega isiliye

    • @AhmadLogs
      @AhmadLogs  11 месяцев назад

      @@ramrode5350 nahi delete ho ga. dont worry

    • @ramrode5350
      @ramrode5350 11 месяцев назад +1

      @@AhmadLogs ok to fir abhi vo try karta hu

  • @programhardware9647
    @programhardware9647 2 месяца назад

    Nice video... But my read file not works in another 8266

  • @R4YTUBE
    @R4YTUBE 5 месяцев назад

    You need (Ghidra) software reverse engineering (SRE) to open firmware.bin file ;-)

  • @fahimi.saiyed8939
    @fahimi.saiyed8939 9 месяцев назад +1

    can i convert bin file to .ino or c file?

  • @bait2339
    @bait2339 2 месяца назад

    I uploaded, there was a warning “does not exist or your board is not connected”, help me please

    • @mikoajgoebiowski9028
      @mikoajgoebiowski9028 Месяц назад

      Did you set correct COM port number? When you don't connect your board to PC, defalut COM port on Arduino IDE is COM3, but when you connect your board, this COM port number mostly changes.
      Check your COM number after connecting your board and use correct COM number in CMD

  • @user-no1oq8jp5z
    @user-no1oq8jp5z 7 месяцев назад

    How to view a .bin file means coding statements programed by someone.

    • @SenithDR
      @SenithDR 7 месяцев назад

      You cannot do that

  • @hfchanel620
    @hfchanel620 11 месяцев назад +1

    Give me a way to contact, brother, I want to contact

  • @santoshmagicshop
    @santoshmagicshop 11 месяцев назад +1

    piz esp8266 se ek video bna do bhai samjh nhi aarha hai kesie kre esptool nhi so krta hai
    C:\Users\santosh\AppData\Local\Arduino15\packages\esp8266\tools\python3 likhta hai kaise kre

    • @AhmadLogs
      @AhmadLogs  10 месяцев назад

      esptool to aik hi hota hy.

    • @santoshmagicshop
      @santoshmagicshop 10 месяцев назад

      @@AhmadLogs mera computer me search karne par esptool nhi aarha hai esliye bol rhe ha aap esp8266 ka video bna do aap piz

    • @AhmadLogs
      @AhmadLogs  10 месяцев назад

      @@santoshmagicshop OK, I will try

  • @santoshmagicshop
    @santoshmagicshop 11 месяцев назад +1

    esp 8266 ka copy kr ke video bna do bhai mujhe bhut jarurt hai

    • @AhmadLogs
      @AhmadLogs  10 месяцев назад +1

      you can use the same method

    • @santoshmagicshop
      @santoshmagicshop 9 месяцев назад

      Nhi ho rha hai bro aap kr do ek video pizz

  • @zyghom
    @zyghom 11 месяцев назад +2

    I hate this AI voice ;-(

    • @AhmadLogs
      @AhmadLogs  11 месяцев назад +2

      so nice of you

    • @j.w.8663
      @j.w.8663 8 месяцев назад

      @@AhmadLogs Your English grammar, syntax and logical explanation is excellent !

  • @HyperX752
    @HyperX752 9 месяцев назад +1

    Bro can you help me with a project, How to contact you ?

  • @user-di5ch4wx5f
    @user-di5ch4wx5f 11 месяцев назад +1

    جميل جدا وفكره رائعة انت انسان مبدع ولكن هل لي ان اطلبك طلب لدي بعض المشاريع واريد منك مساعدتي هل يمكن ان اتحدث معك بالخاص ولك ان تطلب ما تشاء مني

    • @user-di5ch4wx5f
      @user-di5ch4wx5f 11 месяцев назад +1

      I want you to make a video with sim800l module that forwards text messages to a specific number is this possible like sms forwarder app

    • @AhmadLogs
      @AhmadLogs  11 месяцев назад +2

      it is possible. give me some more detail.

    • @user-di5ch4wx5f
      @user-di5ch4wx5f 11 месяцев назад

      @@AhmadLogs It accepts the Arabic language and is almost like the sms forwarder application

  • @AbdulRehman_Pirogrammer01
    @AbdulRehman_Pirogrammer01 11 месяцев назад +1

    sir apse mujhe 1 urgent help chaiye please apni email send krden ap please sir urgent ...!