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
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 :)
I tested it and it works great !
Many thanks for your very good how to.
Continue to make very good video like this.😁👍
Great work. Just what i was looking for.
شكرا لك. شرح جميل وممتع
Well done Ahmad. Good video.
very usefull for backups of 3D printer board versions
Very useful. I need to back up my Pico's and rearrange some M5Stack stuff.
Hi, Do you also have video link for encrypting ESP32 to prevent cloning. Thank you.
Thank you
Thanks a lot
thanks bro
Great 👍👍👍
thanks
How to prevent clone my esp code?
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?
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
So nice of you. I am just a learner
i need your mail id@@AhmadLogs
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 !!!
Hello Sir, Please share your program that to use in the dekstop
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.
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?
are you from Pakistan, I am from India, I love your video so much, you do great projects
Can you do a video how to extract hex code from bl602 chip
Genial!
Can it be doable for esp8266-01...
Hello ..thank you for posting this .I need your advise with a problem , can do the same for ST12C5A60S
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?
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
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
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.
How to change ssid and password in nodemcu8266 bin file
What software is used to write the program for the BIOS of a desktop computer ?
Dammm mate i was i taught i have Alzheimer for a second! 🤣🤣🤣
How i Can upload bin file to Arduino nano ..brother
عمل رائع و ممتاز .
أخ أحمد هل هناك طريقة لتحويل hex إلى code source .وشكرا مجددا
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
Is there any way to prevent that, I don't want any One to use My code
btao bhai keise kre
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!
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?
OK, I just copied all other stuff from the same folder along with esptool.py to another folder, and it works.
My esp32 read file 29%after heng what is problem ???
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.
Hey bro? You get the code??
@@harshverma_i No. I was never able to get it back.
Hello
how do i re-edit the edited bin file
it is not possible
Please, make video that shows how to encrypt flash.
will try
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 🙏
use the same method
@@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
@@ramrode5350 nahi delete ho ga. dont worry
@@AhmadLogs ok to fir abhi vo try karta hu
Nice video... But my read file not works in another 8266
You need (Ghidra) software reverse engineering (SRE) to open firmware.bin file ;-)
can i convert bin file to .ino or c file?
Yes you can.
I uploaded, there was a warning “does not exist or your board is not connected”, help me please
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
How to view a .bin file means coding statements programed by someone.
You cannot do that
Give me a way to contact, brother, I want to contact
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
esptool to aik hi hota hy.
@@AhmadLogs mera computer me search karne par esptool nhi aarha hai esliye bol rhe ha aap esp8266 ka video bna do aap piz
@@santoshmagicshop OK, I will try
esp 8266 ka copy kr ke video bna do bhai mujhe bhut jarurt hai
you can use the same method
Nhi ho rha hai bro aap kr do ek video pizz
I hate this AI voice ;-(
so nice of you
@@AhmadLogs Your English grammar, syntax and logical explanation is excellent !
Bro can you help me with a project, How to contact you ?
جميل جدا وفكره رائعة انت انسان مبدع ولكن هل لي ان اطلبك طلب لدي بعض المشاريع واريد منك مساعدتي هل يمكن ان اتحدث معك بالخاص ولك ان تطلب ما تشاء مني
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
it is possible. give me some more detail.
@@AhmadLogs It accepts the Arabic language and is almost like the sms forwarder application
sir apse mujhe 1 urgent help chaiye please apni email send krden ap please sir urgent ...!
i too need brother