• Batch flashing file for ESP8266 -12 4MB

    Use 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.

     ets Jan  8 2013,rst cause:2, boot mode:(3,7)
    
    load 0x40100000, len 1396, room 16
    tail 4
    chksum 0x89
    load 0x3ffe8000, len 776, room 4
    tail 4
    chksum 0xe8
    load 0x3ffe8308, len 540, room 4
    tail 8
    chksum 0xc0
    csum 0xc0
    
    2nd boot version : 1.4(b1)
      SPI Speed      : 40MHz
      SPI Mode       : DIO
      SPI Flash Size & Map: 8Mbit(512KB+512KB)
    jump to run user1 @ 1000
    

    Run ESPinfo.bat

    Ground GPIO 0 and reset the chip, run ESPinfo.bat

    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp32>set /p pport=Enter a Com port
    Enter a Com port com3
    
    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp32>echo com3
    com3
    
    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp32>pause
    Press any key to continue . . .
    
    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp32>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\espruinoEsp8266Fla­sh\espruino_1v95_esp32>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\espruinoEsp8266Fla­sh\espruino_1v95_esp32>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\espruinoEsp8266Fla­sh\espruino_1v95_esp32>pause
    Press any key to continue . . .
    

    Flashing the 4MB Espruino

    Ground GPIO 9 reset the chip
    Run the batch file
    "C:\Users\jj\Documents\espruinoEsp8266Fl­ash\espruino_1v95_esp8266_4mb\FlashESP82­66_4M.bat"

    :: Flash ESP8288 4MB chip with Espruino
    set /p pport=Enter a Com port 
    echo %pport%
    pause
    esptool.py --port %pport% --baud 115200 write_flash --flash_freq 80m --flash_mode qio --flash_size 4MB 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin
    pause
    
    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp8266_4mb>set /p pport=Enter a Com port
    Enter a Com port com3
    
    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp8266_4mb>echo com3
    com3
    
    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp8266_4mb>pause
    Press any key to continue . . .
    
    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp8266_4mb>esptool.py --port com3 --baud 115200 write_flash --flash_freq 80m --flash_mode qio --flash_size 4MB 0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin 0x3FC000 esp_init_data_default.bin 0x3FE000 blank.bin
    esptool.py v2.2.1
    Connecting....
    Detecting chip type... ESP8266
    Chip is ESP8266EX
    Uploading stub...
    Running stub...
    Stub running...
    Configuring flash size...
    Flash params set to 0x004f
    Compressed 3856 bytes to 2763...
    Wrote 3856 bytes (2763 compressed) at 0x00000000 in 0.3 seconds (effective 120.1 kbit/s)...
    Hash of data verified.
    Compressed 509332 bytes to 340820...
    Wrote 509332 bytes (340820 compressed) at 0x00001000 in 30.3 seconds (effective 134.6 kbit/s)...
    Hash of data verified.
    Compressed 128 bytes to 75...
    Wrote 128 bytes (75 compressed) at 0x003fc000 in 0.0 seconds (effective 63.5 kbit/s)...
    Hash of data verified.
    Compressed 4096 bytes to 26...
    Wrote 4096 bytes (26 compressed) at 0x003fe000 in 0.0 seconds (effective 1973.9 kbit/s)...
    Hash of data verified.
    
    Leaving...
    Hard resetting...
    
    C:\Users\jj\Documents\espruinoEsp8266Fla­sh\espruino_1v95_esp8266_4mb>pause
    Press any key to continue . . .
    

    Run WEBIDE

    unground GPIO 0, reset the chip

    Connected
    >
    >reset()
    =undefin
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| 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 4MB:512/512, manuf 0xe0 chip 0x4016
    > 
    

    1 Attachment

About