How To Read Bin File From ESP32 and ESP8266

  Рет қаралды 38,252

Ahmad Logs

Ahmad Logs

Күн бұрын

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/ahm...
KZbin:
www.youtube.co...
--------------------------------------------------------------------------------------------------------------------
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

Пікірлер: 91
@mikoajgoebiowski9028
@mikoajgoebiowski9028 3 ай бұрын
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 :)
@DIYELEKTRONICKITS
@DIYELEKTRONICKITS 21 күн бұрын
Works fantastically, wow thanks for such a great tutorial.
@nicolassun7938
@nicolassun7938 7 ай бұрын
I tested it and it works great ! Many thanks for your very good how to. Continue to make very good video like this.😁👍
@ESP32-ARD
@ESP32-ARD 6 ай бұрын
Hi, Do you also have video link for encrypting ESP32 to prevent cloning. Thank you.
@milodelpozo7727
@milodelpozo7727 3 ай бұрын
very usefull for backups of 3D printer board versions
@kees-ft1yb
@kees-ft1yb 6 ай бұрын
Great work. Just what i was looking for.
@sevketkarayilan
@sevketkarayilan 10 ай бұрын
How to prevent clone my esp code?
@elektron2kim666
@elektron2kim666 6 ай бұрын
Very useful. I need to back up my Pico's and rearrange some M5Stack stuff.
@opm905
@opm905 Жыл бұрын
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 Жыл бұрын
So nice of you. I am just a learner
@TechTamilIOT
@TechTamilIOT Жыл бұрын
i need your mail id@@AhmadLogs
@CiroPeixoto
@CiroPeixoto 8 ай бұрын
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 !!!
@anilgarg57
@anilgarg57 Жыл бұрын
Well done Ahmad. Good video.
@jaisiddhisuperpowerpltd1872
@jaisiddhisuperpowerpltd1872 4 ай бұрын
are you from Pakistan, I am from India, I love your video so much, you do great projects
@ethanclement9647
@ethanclement9647 Ай бұрын
I need to read memory from esp32-wrover-e which is not connected to a development board. What programming cable will work and what peripherals do I need in order to read and write?
@Belkhir-Beg
@Belkhir-Beg 11 ай бұрын
شكرا لك. شرح جميل وممتع
@aekaek8759
@aekaek8759 4 ай бұрын
عمل رائع و ممتاز . أخ أحمد هل هناك طريقة لتحويل hex إلى code source .وشكرا مجددا
@andrysaputra-f2p
@andrysaputra-f2p 24 күн бұрын
thanks for the tutorial but i have a problem, because i just stuck read in 6% with my esp32
@brishisharma
@brishisharma 2 ай бұрын
how to copy if it is soldered directly on pcb other than development board?
@bekahmed5048
@bekahmed5048 2 ай бұрын
Thank you very much... can i change Bluetooth name from à bin file?
@carlovillois23
@carlovillois23 3 ай бұрын
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?
@Steven_Bennett_YT
@Steven_Bennett_YT 4 ай бұрын
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?
@sivashankar5500
@sivashankar5500 Ай бұрын
Error: argument size: invalid arg_auto_int value: '0*400000, Reply me
@mainegrower
@mainegrower 3 ай бұрын
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.
@Chache17
@Chache17 2 ай бұрын
I have a couple questions: is it possible to password protect the esp32 so that this operation can only be done with the correct password? And, is it possible to just copy the program partition and paste it into the second device? This is to keep the data potentially existing in the spiffs partition.
@permanenthairsystemludhian5143
@permanenthairsystemludhian5143 5 ай бұрын
My esp32 read file 29%after heng what is problem ???
@sulesharad
@sulesharad Жыл бұрын
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.
@UlrichBarlow
@UlrichBarlow 5 ай бұрын
Hello ..thank you for posting this .I need your advise with a problem , can do the same for ST12C5A60S
@TrackAnimatorsMEDIA
@TrackAnimatorsMEDIA 6 ай бұрын
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?
@CevdetBakan
@CevdetBakan 7 ай бұрын
Thanks a lot
@ahmedsameerhassan
@ahmedsameerhassan 8 ай бұрын
Is there any way to prevent that, I don't want any One to use My code
@ramrode5350
@ramrode5350 Жыл бұрын
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 Жыл бұрын
use the same method
@ramrode5350
@ramrode5350 Жыл бұрын
​@@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 Жыл бұрын
@@ramrode5350 nahi delete ho ga. dont worry
@ramrode5350
@ramrode5350 Жыл бұрын
@@AhmadLogs ok to fir abhi vo try karta hu
@saadelm2955
@saadelm2955 7 ай бұрын
How i Can upload bin file to Arduino nano ..brother
@049-rizqipratama7
@049-rizqipratama7 Жыл бұрын
Hello Sir, Please share your program that to use in the dekstop
@ПерсеяПегаса
@ПерсеяПегаса 8 ай бұрын
thanks bro
@sulesharad
@sulesharad Жыл бұрын
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 Жыл бұрын
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
@fahimi.saiyed8939
@fahimi.saiyed8939 Жыл бұрын
can i convert bin file to .ino or c file?
@Euro-np8mp
@Euro-np8mp 2 ай бұрын
Yes you can.
@R4YTUBE
@R4YTUBE 7 ай бұрын
You need (Ghidra) software reverse engineering (SRE) to open firmware.bin file ;-)
@shakerileiwat4341
@shakerileiwat4341 Жыл бұрын
Great 👍👍👍
@AhmadLogs
@AhmadLogs Жыл бұрын
thanks
@woolfy02
@woolfy02 7 ай бұрын
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 7 ай бұрын
Hey bro? You get the code??
@woolfy02
@woolfy02 7 ай бұрын
@@harshverma_i No. I was never able to get it back.
@hristodimitrov9431
@hristodimitrov9431 Жыл бұрын
Please, make video that shows how to encrypt flash.
@AhmadLogs
@AhmadLogs Жыл бұрын
will try
@electrik77
@electrik77 6 ай бұрын
Genial!
@dragon-cu6cc
@dragon-cu6cc Жыл бұрын
Hello how do i re-edit the edited bin file
@AhmadLogs
@AhmadLogs Жыл бұрын
it is not possible
@santoshmagicshop
@santoshmagicshop Жыл бұрын
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 Жыл бұрын
esptool to aik hi hota hy.
@santoshmagicshop
@santoshmagicshop Жыл бұрын
@@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 Жыл бұрын
@@santoshmagicshop OK, I will try
@HyperX752
@HyperX752 Жыл бұрын
Bro can you help me with a project, How to contact you ?
@ArslanIshtiaq-v8c
@ArslanIshtiaq-v8c 10 ай бұрын
How to view a .bin file means coding statements programed by someone.
@SenithDR
@SenithDR 10 ай бұрын
You cannot do that
@hfchanel620
@hfchanel620 Жыл бұрын
Give me a way to contact, brother, I want to contact
@santoshmagicshop
@santoshmagicshop Жыл бұрын
esp 8266 ka copy kr ke video bna do bhai mujhe bhut jarurt hai
@AhmadLogs
@AhmadLogs Жыл бұрын
you can use the same method
@santoshmagicshop
@santoshmagicshop Жыл бұрын
Nhi ho rha hai bro aap kr do ek video pizz
@zyghom
@zyghom Жыл бұрын
I hate this AI voice ;-(
@AhmadLogs
@AhmadLogs Жыл бұрын
so nice of you
@j.w.8663
@j.w.8663 11 ай бұрын
@@AhmadLogs Your English grammar, syntax and logical explanation is excellent !
@كيفالكترونيات
@كيفالكترونيات Жыл бұрын
جميل جدا وفكره رائعة انت انسان مبدع ولكن هل لي ان اطلبك طلب لدي بعض المشاريع واريد منك مساعدتي هل يمكن ان اتحدث معك بالخاص ولك ان تطلب ما تشاء مني
@كيفالكترونيات
@كيفالكترونيات Жыл бұрын
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 Жыл бұрын
it is possible. give me some more detail.
@كيفالكترونيات
@كيفالكترونيات Жыл бұрын
@@AhmadLogs It accepts the Arabic language and is almost like the sms forwarder application
@AbdulRehman_Pirogrammer01
@AbdulRehman_Pirogrammer01 Жыл бұрын
sir apse mujhe 1 urgent help chaiye please apni email send krden ap please sir urgent ...!
@TechTamilIOT
@TechTamilIOT Жыл бұрын
i too need brother
@СарварМуратбеков
@СарварМуратбеков Ай бұрын
how to open esp8266 bin file on computer
@jumbo999614
@jumbo999614 2 ай бұрын
I'm using Proteus simulator and it expect hex file for microcontroller. When I compile code for ESP8266 in Arduino IDE, I get elf and bin. Can I convert it to hex? Even it successfully converted, will it work in proteus?
@hsnhaku319
@hsnhaku319 19 күн бұрын
Thank you🎉
@ethanclement9647
@ethanclement9647 Ай бұрын
You're a genius and thanks for your careful documentation. I was able to pull the file from a "dead" ESP32-WROVER-E device. I did have to cold boot it with power supply and then it locked into bootloader mode nicely. Thanks again!
@satishpawa
@satishpawa 5 ай бұрын
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
@programhardware9647
@programhardware9647 5 ай бұрын
Nice video... But my read file not works in another 8266
@3dprintinglab1
@3dprintinglab1 7 ай бұрын
Can you do a video how to extract hex code from bl602 chip
@sulesharad
@sulesharad Жыл бұрын
How to change ssid and password in nodemcu8266 bin file
@bait2339
@bait2339 5 ай бұрын
I uploaded, there was a warning “does not exist or your board is not connected”, help me please
@mikoajgoebiowski9028
@mikoajgoebiowski9028 3 ай бұрын
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
@woodyouloveit-fe1sw
@woodyouloveit-fe1sw 9 ай бұрын
Can it be doable for esp8266-01...
@praveenb9048
@praveenb9048 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
OK, I just copied all other stuff from the same folder along with esptool.py to another folder, and it works.
@santoshmagicshop
@santoshmagicshop Жыл бұрын
btao bhai keise kre
@agenpulsa70
@agenpulsa70 10 ай бұрын
Thank you
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 582 М.
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 54 МЛН
Debugging the Arduino Uno or Nano! (No extra hardware needed!)
6:59
How To Read from ESP32 - CLONE/BACKUP Everything
23:57
Kevin Darrah
Рет қаралды 51 М.
EEPROM Traps! (Combinational logic / TTL Computer microcoding)
8:26
HalfBurntToast
Рет қаралды 2,9 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 78 М.
The Home Server I've Been Wanting
18:14
Hardware Haven
Рет қаралды 89 М.
Revolutionize Your ESP32 Projects with Live GPIO Pin Monitoring!
8:08
The Last Outpost Workshop
Рет қаралды 174 М.
#332 ESP32  OTA tutorial with tricks (incl. OTA debugging)
10:17
Andreas Spiess
Рет қаралды 135 М.
Whaaat?? How To Extract HEX Code from Arduino
12:36
Electronoobs
Рет қаралды 61 М.
ESP32 Factory Reset -Erase Flash using EspTool
6:44
Saravanan AL
Рет қаралды 7 М.
Brawl Stars Edit😈📕
00:15
Kan Andrey
Рет қаралды 54 МЛН