• Hello Ollie,
    Hopefully I'm replying in the write place now. Sorry if not.
    I used the Espruino programmer and last time. I used esptool.py erase_flash this time.
    In either case, after erasing, I used esptool.py to program the module with Espruino code.
    "esptool.py --port COM4 --baud 460800 write_flash --flash_freq 80m --flash_mode qio --flash_size 32m 0x0000 "boot_v1.4(b1).bin" 0x1000 espruino_esp8266_user1.bin 0x37E000 blank.bin"
    I then loaded the simpler web server example from Kolban.
    "function beServer()
    {
    var http = require("http");
    var httpServer = http.createServer(function(request, response)
    {

    print(request);
    if (request.url == "/favicon.ico")
    {
      response.writeHead(404);
      response.end("");
      return;
    }
    
    response.write("<html><body>");
    if (request.url == "/hello")
    {
      response.write("<b>Welcome</b> to the ESP8266 test.");
    } else if (request.url == "/goodbye"){
      response.write("<b>Please</b> come back again soon.");
    } else {
      response.write("Sorry... I didn't understand!");
    }
    response.end("</body></html>");
    

    }); // End of one new browser request

    httpServer.listen(80);
    print("Now being an HTTP server!");
    

    } // End of beServer

    var ssid = "COZYPINES";
    var pwd = "";
    // Slow down clock
    var E =require("ESP8266");
    E.setCPUFreq(80);

    // Connect to the access point
    var wifi = require("Wifi");
    print("Connecting to access point.");
    wifi.connect(ssid, {password:pwd}, function(err)
    {
    if (err)
    {

    print("Error connecting to access point.");
    return;
    

    }
    var ESP8266 = require("ESP8266");
    print("Connect says that we are now connected!!");
    print("Starting web server at http://" + wifi.getIP().ip + ":80");
    beServer();
    });
    "
    In either case, when I upload the server example to the module, first I get success. with an IP acquired.
    A short time 30s? later I get
    ets jan 8 2013, rst cause:, boot mode:(3,6)
    load 0x40100000, len 1396, room 16... there is more but I can't clip out of window.
    Bottom line is the module is rebooting. I have it running off the usb port. Is this the issue?
    I scoped the 3V line of the module and while I see noise (tx bursts) on the rail, it is in the mV are.

About

Avatar for user67974 @user67974 started