Finaly got a 4MB ESP8266-12 (AI-Thinker ESP8266 MOD) assembled and working.
I used 10k pullup resistors on the reset, Enable and GPIO 0 pins and a 10k pulldown resistor on GPIO 15.
I used three batch files to run the ESPtool.py
I first copied the batch files to the folder:
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb"
Run the batch files by clicking on them in file explorer after grounding GPIO 0 and resetting the chip.
Run ESPinfo.bat and get the following.
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb>set /p pport=Enter a Com port
Enter a Com port com3
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb>echo com3
com3
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb>pause
Press any key to continue . . .
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb>esptool.py --port com3 --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: 0x00134e51
Hard resetting...
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb>esptool.py --port com3 --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:13:4e:51
Hard resetting...
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb>esptool.py --port com3 --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: e0
Device: 4016
Detected flash size: 4MB
Hard resetting...
C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb>pause
Press any key to continue . . .
Then I did a reset of the chip and ran EraseFlash.bat.
Then I did a reset of the chip and ran
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb\FlashESP8266_4M_40mhz.bat"
I un-grounded GPIO 0 and reset the chip.
Reconnect to WEBIDE and try the test program WSDesp8266C.js
It connects to my router and serves the HTML page but fails to transmit data via WebSockets.
Try again
Put the batch files into the following folder
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266"
Rerun the ESPinfo.bat, EraseFlash.bat and FlashESP8266_4M_40mhz.bat.
The WSDesp8266C.js program produces the following output:
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.
Finaly got a 4MB ESP8266-12 (AI-Thinker ESP8266 MOD) assembled and working.
I used 10k pullup resistors on the reset, Enable and GPIO 0 pins and a 10k pulldown resistor on GPIO 15.
I used three batch files to run the ESPtool.py
I first copied the batch files to the folder:
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb"
Run the batch files by clicking on them in file explorer after grounding GPIO 0 and resetting the chip.
Run ESPinfo.bat and get the following.
Then I did a reset of the chip and ran EraseFlash.bat.
Then I did a reset of the chip and ran
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266_4mb\FlashESP8266_4M_40mhz.bat"
I un-grounded GPIO 0 and reset the chip.
Reconnect to WEBIDE and try the test program WSDesp8266C.js
It connects to my router and serves the HTML page but fails to transmit data via WebSockets.
Try again
Put the batch files into the following folder
"C:\Users\jj\Documents\espruinoEsp8266Flash\espruino_1v95_esp8266"
Rerun the ESPinfo.bat, EraseFlash.bat and FlashESP8266_4M_40mhz.bat.
The WSDesp8266C.js program produces the following output:
661,504 * 8 / 48.125 = 109,964 Bits per second
5 Attachments