Place Batch file in folder:
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266"
Ground GPIO pin 0 abd reset the chip
From Explorer click on the "C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266\ESPinfo.bat" file. A command Window opens, enter the com port press returns at each pause. The output for a Sparkfun Thing dev board follows.
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>set /p pport=Enter a Com port
Enter a Com port com6
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>echo com6
com6
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>pause
Press any key to continue . . .
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>esptool.py --port com6 --baud 115200 --no-stub chip_id
esptool.py v2.2.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Enabling default SPI flash mode...
Chip ID: 0x008b1b99
Hard resetting...
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>esptool.py --port com6 --baud 115200 --no-stub read_mac
esptool.py v2.2.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Enabling default SPI flash mode...
MAC: 5c:cf:7f:8b:1b:99
Hard resetting...
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>esptool.py --port com6 --baud 115200 --no-stub flash_id
esptool.py v2.2.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Enabling default SPI flash mode...
Manufacturer: 1f
Device: 8401
Detected flash size: Unknown
Hard resetting...
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>pause
Press any key to continue . . .
The batch file FlashESP8266_1K.bat follows:
:: Flash ESP8288 512KB chip with Espruino
set /p pport=Enter a Com port
echo %pport%
pause
esptool.py --port %pport% --baud 57600 write_flash --flash_freq 40m --flash_mode qio --flash_size 512KB 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x7C000 esp_init_data_default.bin 0x7E000 blank.bin
pause
Reset the chip and in file explorer click on
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266\FlashESP8266_1K.bat"
The output follows:
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>set /p pport=Enter a Com port
Enter a Com port com6
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>echo com6
com6
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>pause
Press any key to continue . . .
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>esptool.py --port com6 --baud 57600 write_flash --flash_freq 40m --flash_mode qio --flash_size 512KB 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x7C000 esp_init_data_default.bin 0x7E000 blank.bin
esptool.py v2.2.1
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Compressed 3856 bytes to 2762...
Wrote 3856 bytes (2762 compressed) at 0x00000000 in 0.5 seconds (effective 62.2 kbit/s)...
Hash of data verified.
Compressed 456756 bytes to 320993...
Wrote 456756 bytes (320993 compressed) at 0x00001000 in 56.7 seconds (effective 64.5 kbit/s)...
Hash of data verified.
Compressed 128 bytes to 75...
Wrote 128 bytes (75 compressed) at 0x0007c000 in 0.0 seconds (effective 32.0 kbit/s)...
Hash of data verified.
Compressed 4096 bytes to 26...
Wrote 4096 bytes (26 compressed) at 0x0007e000 in 0.0 seconds (effective 2047.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting...
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266>pause
Press any key to continue . . .
Unground GPIO pin 0 and reset the chip then start WEBIDE
Connected
>
>reset()
=undefine
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| http://espruino.com
1v95 Copyright 2017 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 512KB:256/256, manuf 0x1f chip 0x8401
>
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Flashing Batch File for ESP8266 512KB version
Place Batch file in folder:
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266"
Ground GPIO pin 0 abd reset the chip
From Explorer click on the "C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266\ESPinfo.bat" file. A command Window opens, enter the com port press returns at each pause. The output for a Sparkfun Thing dev board follows.
The batch file FlashESP8266_1K.bat follows:
Reset the chip and in file explorer click on
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266\FlashESP8266_1K.bat"
The output follows:
Unground GPIO pin 0 and reset the chip then start WEBIDE
1 Attachment