Using batch (.BAT) files to help with Flashing ESP8266 #6001
Replies: 1 comment
-
Posted at 2018-01-30 by @MaBecker Cool - ClearMemory041063 do you like to add a MSDos section to README_flash.txt and check ESP8266_Flashing.md if there is needed more information? Posted at 2018-01-30 by ClearMemory041063 Hi @MaBecker Later today I hope to do the flash batch files for the 512K, 4M esp8266 chips and the ESP32 It would be nice to read the flash info from the chip and parse it to supply the suggested flashing batch file to use. That's what the readme file contains. Seems that the 8266 chips have a separate flash chip. Using a magnifying glass one can sometimes read the part number. Relevant information is the SPI mode, size and speed. These need to be in the flash command. The 8266 chips also have a processor crystal speed. Choose the wrong speed in the flash command and the baud rates will change. Let's see how this idea flies before suggesting they be included in the Espruino download. Posted at 2018-01-30 by ClearMemory041063 Flashing Batch File for ESP8266 512KB versionPlace Batch file in folder: Ground GPIO pin 0 abd reset the chip
The batch file FlashESP8266_1K.bat follows:
Reset the chip and in file explorer click on
Unground GPIO pin 0 and reset the chip then start WEBIDE
Attachments: Posted at 2018-01-30 by ClearMemory041063 Flashing Batch File for ESP32Place Batch files in folder: "C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp32" Ground GPIO pin 0 abd reset the chip
The batch file FlashESP32.bat follows:
Reset the chip and in file explorer click on
Unground GPIO pin 0 and reset the chip.
Attachments: Posted at 2018-01-30 by ClearMemory041063 Batch file to erase flash on ESP8266 oe ESP32
The Output:
Attachments: Posted at 2018-01-31 by ClearMemory041063 Batch flashing file for ESP8266 -12 4MBUse Putty at 74880 Baud GPIO 0 not grounded connect and then reset the chip.Note the SPI Speed, the SPI Mode and the Flash Size in bits.
Run ESPinfo.batGround GPIO 0 and reset the chip, run ESPinfo.bat
Flashing the 4MB EspruinoGround GPIO 9 reset the chip
Run WEBIDEunground GPIO 0, reset the chip
Attachments: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-01-30 by ClearMemory041063
Using batch (.BAT) files to help with Flashing ESP8266
Having installed ESPtool.py and downloaded the latest version of Espruino into a folder:
In my case, I created a folder
"C:\Users\jj\Documents\espruinoEsp8266Flash"
and then copied the two batch files into the subfolder
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266"
Identify the ESP8266 Chip
Plug the ESP8266 into a USB port ( using supporting hardware)
Ground GPIO pin 0
Reset the chip and run ESPinfo.bat
ESPinfo.bat
and the output
Note the Flash size for the chip I used is 1Mbyte. So I will use a batch file set up to program the ESP8266 with that size flash chip.
Reset the ESP8266 and then run "C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266\FlashESP8266_1M.bat"
The output:
Disconnect GPIO pin 0 from the ground and reset a couple of times.
Start WebIde and connect to the ESP8266
Need to create batch files for the other ESP8266 and ESP32 chips
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions