• EDIT

    Sun 2019.04.28 Concise summary
    While I understand the WeMos D1 mini is an unsupported board, but as I didn't have an authentic Espruino Wifi handy, . . . leaving the following as information only.

    Does anyone have a WeMos D1 mini to attempt a current ESP8266 flash for comparison?
    or, has anyone experienced the same error?
    Was never able to get a successful upload after three separate flash attempts, and even an attempt after a successful flash of 1V96
    See #10 below for 2v1: frame_error


    Sat 2019.04.27

    Am attempting to run a WiFi example on a current flash of 2v0 on ESP8266

    Verified WebIDE baud at 115200

    Stripped out all but

    var http = require("http");
    var Wifi = require("Wifi");
    

    Uploading from R-hand editor side of WebIDE

    WebIDE console output

    loadModule(http)
    loadModule(Wifi)
    loadModule(ESP8266)
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/Wifi.min­.js
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/http.min­.js
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/ESP8266.­min.js
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/Wifi.js
    WARNING: [notify_warn] Module Wifi not found
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/http.js
    WARNING: [notify_warn] Module http not found
    Espruino.Core.Utils.getURL: got HTTP status code 404 for http://www.espruino.com/modules/ESP8266.­js
    WARNING: [notify_warn] Module ESP8266 not found
    Got ""
    

    Turned off minification

    Browser also unable to find source and 404's

    http://www.espruino.com/modules/Wifi.min­.js
    http://www.espruino.com/modules/http.min­.js

    http://www.espruino.com/modules/Wifi.js
    http://www.espruino.com/modules/http.js

    In the meantime looking back over

    http://www.espruino.com/Troubleshooting#­i-get-uncaught-error-module-xyz-not-foun­d-



    UPDATE:
    Pulling links from:

    http://forum.espruino.com/conversations/­315462/

    I reflashed to 1v96 as explained here

    https://github.com/andrewwakeling/esprui­no-d1-mini-pro

    C:\Espruino\esp8266\1V96>python "../esptool/esptool.py" --port COM3 --baud 115200 erase_flash
    esptool.py v2.0-beta1
    Connecting....
    Detecting chip type... ESP8266
    Uploading stub...
    Running stub...
    Stub running...
    Erasing flash (this may take a while)...
    Chip erase completed successfully in 0.0s
    Hard resetting...
    

    Board reset then flash 1v96

    C:\Espruino\esp8266\1V96>python "../esptool/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.0-beta1
    Connecting....
    Detecting chip type... ESP8266
    Uploading stub...
    Running stub...
    Stub running...
    Attaching SPI flash...
    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 121.0 kbit/s)...
    Hash of data verified.
    Compressed 518516 bytes to 345913...
    Wrote 518516 bytes (345913 compressed) at 0x00001000 in 31.3 seconds (effective 132.7 kbit/s)...
    Hash of data verified.
    Compressed 128 bytes to 75...
    Wrote 128 bytes (75 compressed) at 0x003fc000 in 0.0 seconds (effective 31.0 kbit/s)...
    Hash of data verified.
    Compressed 4096 bytes to 26...
    Wrote 4096 bytes (26 compressed) at 0x003fe000 in 0.0 seconds (effective 3640.9 kbit/s)...
    Hash of data verified.
    
    Leaving...
    Hard resetting...
    

    Success!! for 1v96

    >
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     1v96 (c) 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
    >
    

    And a little more detective work and the source was located, and now I understand why the min files are not able to be viewed by the browser.

    https://github.com/espruino/Espruino/tre­e/master/libs/js/espruino_wifi/Wifi.min.­js

    https://github.com/espruino/Espruino/tre­e/master/libs/network/http/jswrap_http.c­

    https://github.com/espruino/Espruino/tre­e/master/libs/network/esp8266/network_es­p8266.c

    Still, wonder about why 2v0 behaves as indicated in #1 ? . . . .

About

Avatar for Robin @Robin started