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 :)
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!
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?
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
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 !!!
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?
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.
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?
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 🙏
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?
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
Nice Video! But i have a problem, the download stop to 16%. With the error: 679936 (16 %) A fatal error occurred: Packet content transfer stopped (received 3974 bytes). can you tell me what could be the reason for this?
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
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.
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.
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
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?
There are ways to protect your ESP32 code from being read or cloned, though the ESP32 is not as secure as some microcontrollers that are specifically designed with code protection in mind. Here are some methods to help secure your code: 1. Flash Encryption ESP32 supports flash encryption, which encrypts the contents of the flash memory. This makes it difficult for anyone to read or clone the code directly from the flash memory. You can enable flash encryption using the ESP-IDF framework. This feature ensures that all data written to the flash is encrypted, and it can only be decrypted by the ESP32 itself. To use flash encryption, you need to configure it during the initial programming phase. Note that it can impact performance slightly due to the encryption and decryption processes. 2. Secure Boot Secure Boot is another security feature provided by the ESP32. It prevents unauthorized code from running on the device. With Secure Boot enabled, the ESP32 verifies the integrity of the firmware using a digital signature before executing it. This prevents anyone from modifying or uploading unauthorized code to the device. To enable Secure Boot, you will need to use the ESP-IDF framework, as it is not available through the Arduino IDE. 3. One-Time Programmable (OTP) Memory ESP32 has OTP memory, which is used to store keys and other security data that cannot be changed once programmed. You can use this to store a unique identifier or encryption key that ties the firmware to a specific device. You can also set certain bits in the OTP memory to enable security features permanently, such as flash encryption or secure boot, making the device much more difficult to reprogram. 4. Disabling the JTAG Interface The ESP32 includes a JTAG debugging interface, which can be a security risk if left enabled. Disabling the JTAG interface prevents anyone from accessing the chip for debugging or code extraction. You can disable JTAG using software commands or by burning a specific OTP bit to permanently disable it. 5. Firmware Update with OTA (Over-the-Air) Instead of programming the ESP32 through USB each time, you can set up Over-the-Air (OTA) updates, which can be password-protected. This allows you to control when and how firmware updates happen without exposing the device's flash memory. 6. Preventing Multiple Flash Writes While the ESP32 does not natively support a "write-once" feature, you can simulate it by setting a flag in flash memory after the initial upload. For example, during the first-time setup, your code can write a unique flag to a specific flash sector that the bootloader checks on each startup. If the flag is present, the bootloader can prevent further reprogramming attempts. Combining these techniques, especially Flash Encryption and Secure Boot, will make it considerably more challenging for anyone to clone or tamper with your code on the ESP32. Keep in mind, however, that while these steps will increase security, there is no method that can provide absolute protection.
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
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 :)
yes worked on esp8266mod
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!
Great work. Just what i was looking for.
I tested it and it works great !
Many thanks for your very good how to.
Continue to make very good video like this.😁👍
Hi, Do you also have video link for encrypting ESP32 to prevent cloning. Thank you.
finally an excellent explanation. thank you so much
Good job. Works fine. Thanks a lot
Works fantastically, wow thanks for such a great tutorial.
Well done Ahmad. Good video.
good job, it worked read flash data on esp8266mod, thanks...🙏
you are genius
Very useful. I need to back up my Pico's and rearrange some M5Stack stuff.
very usefull for backups of 3D printer board versions
How to prevent clone my esp code?
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?
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 !!!
Thank you🎉
عمل رائع و ممتاز .
أخ أحمد هل هناك طريقة لتحويل hex إلى code source .وشكرا مجددا
Thank you very much... can i change Bluetooth name from à bin file?
شكرا لك. شرح جميل وممتع
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?
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.
What if I want to extract app0.bin , bootloader.bin, ino.partition.bin separately?
how to copy if it is soldered directly on pcb other than development board?
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
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?
Thanks a lot
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.
Hello ..thank you for posting this .I need your advise with a problem , can do the same for ST12C5A60S
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
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?
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
Nice Video! But i have a problem, the download stop to 16%. With the error: 679936 (16 %)
A fatal error occurred: Packet content transfer stopped (received 3974 bytes).
can you tell me what could be the reason for this?
Thank you
Can it be doable for esp8266-01...
thanks bro
My esp32 read file 29%after heng what is problem ???
Great 👍👍👍
thanks
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
can i convert bin file to .ino or c file?
Yes you can.
Hello Sir, Please share your program that to use in the dekstop
How i Can upload bin file to Arduino nano ..brother
thanks for the tutorial but i have a problem, because i just stuck read in 6% with my esp32
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.
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.
Nice video... But my read file not works in another 8266
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
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
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.
How to change ssid and password in nodemcu8266 bin file
btao bhai keise kre
Is there any way to prevent that, I don't want any One to use My code
There are ways to protect your ESP32 code from being read or cloned, though the ESP32 is not as secure as some microcontrollers that are specifically designed with code protection in mind. Here are some methods to help secure your code:
1. Flash Encryption
ESP32 supports flash encryption, which encrypts the contents of the flash memory. This makes it difficult for anyone to read or clone the code directly from the flash memory.
You can enable flash encryption using the ESP-IDF framework. This feature ensures that all data written to the flash is encrypted, and it can only be decrypted by the ESP32 itself.
To use flash encryption, you need to configure it during the initial programming phase. Note that it can impact performance slightly due to the encryption and decryption processes.
2. Secure Boot
Secure Boot is another security feature provided by the ESP32. It prevents unauthorized code from running on the device.
With Secure Boot enabled, the ESP32 verifies the integrity of the firmware using a digital signature before executing it. This prevents anyone from modifying or uploading unauthorized code to the device.
To enable Secure Boot, you will need to use the ESP-IDF framework, as it is not available through the Arduino IDE.
3. One-Time Programmable (OTP) Memory
ESP32 has OTP memory, which is used to store keys and other security data that cannot be changed once programmed. You can use this to store a unique identifier or encryption key that ties the firmware to a specific device.
You can also set certain bits in the OTP memory to enable security features permanently, such as flash encryption or secure boot, making the device much more difficult to reprogram.
4. Disabling the JTAG Interface
The ESP32 includes a JTAG debugging interface, which can be a security risk if left enabled. Disabling the JTAG interface prevents anyone from accessing the chip for debugging or code extraction.
You can disable JTAG using software commands or by burning a specific OTP bit to permanently disable it.
5. Firmware Update with OTA (Over-the-Air)
Instead of programming the ESP32 through USB each time, you can set up Over-the-Air (OTA) updates, which can be password-protected.
This allows you to control when and how firmware updates happen without exposing the device's flash memory.
6. Preventing Multiple Flash Writes
While the ESP32 does not natively support a "write-once" feature, you can simulate it by setting a flag in flash memory after the initial upload.
For example, during the first-time setup, your code can write a unique flag to a specific flash sector that the bootloader checks on each startup. If the flag is present, the bootloader can prevent further reprogramming attempts.
Combining these techniques, especially Flash Encryption and Secure Boot, will make it considerably more challenging for anyone to clone or tamper with your code on the ESP32. Keep in mind, however, that while these steps will increase security, there is no method that can provide absolute protection.
How to view a .bin file means coding statements programed by someone.
You cannot do that
how to open esp8266 bin file on computer
Genial!
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
You need (Ghidra) software reverse engineering (SRE) to open firmware.bin file ;-)
Error: argument size: invalid arg_auto_int value: '0*400000,
Reply me
Give me a way to contact, brother, I want to contact
NOBODY USES SUCH OLD ARDUINO IDE NO MORE
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