Avatar for calebbrewer

calebbrewer

Member since Dec 2017 • Last active Jan 2018
  • 2 conversations
  • 8 comments

Most recent activity

  • in ESP8266
    Avatar for calebbrewer

    This is really odd. I can flash micropython, but if I flash espruino it just goes into a reboot loop (I think it's a reboot loop).

  • in ESP8266
    Avatar for calebbrewer

    Thanks for the response. After erasing the flash and re-flashing Espruino the board goes right into a reboot loop. Now I can't get it to stop. I tried it again with the same result.

  • in ESP8266
    Avatar for calebbrewer
    esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash   --flash_freq 80m --flash_mode qio --flash_size 32m   0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin
    

    Should I be flashing it differently?

  • in ESP8266
    Avatar for calebbrewer

    I am running espruino 1v95.173 on a NODEMCU board.

    I can connect to a WiFi AP like this (Per the docs)...

    var wifi = require("Wifi");
    wifi.connect("my-ssid", {password:"my-pwd"}, function(err){
      console.log("connected? err=", err, "info=", wifi.getIP());
    });
    wifi.stopAP();
    

    However the moment I add wifi.save() and reboot, the 8266 gets stuck in what looks like a reboot loop and barfs all over the screen. This forces me to reflash...

  • in ESP8266
    Avatar for calebbrewer

    Thanks @MaBe & @allObjects!

    Why does this need to be locked/limited? recursion is a big deal in JS.

  • in ESP8266
    Avatar for calebbrewer

    Thank you! When I run it with the onInit() I get this...

    foobar 1
    foobar 2
    foobar 3
    foobar 4
    foobar 5
    foobar 6
    foobar 7
    foobar 8
    foobar 9
    foobar 10
    foobar 11
    foobar 12
     ets Jan  8 2013,rst cause:2, boot mode:(3,6)
    load 0x40100000, len 2408, room 16
    tail 8
    chksum 0xe5
    load 0x3ffe8000, len 776, room 0
    tail 8
    chksum 0x84
    load 0x3ffe8310, len 632, room 0
    tail 8
    chksum 0xd8
    csum 0xd8
    2nd boot version : 1.6
      SPI Speed      : 80MHz
      SPI Mode       : QIO
      SPI Flash Size & Map: 32Mbit(512KB+512KB)
    jump to run user1 @ 1000
    ãì2oäpòN|ìlàl`ã{²pþ
    
  • in ESP8266
    Avatar for calebbrewer

    I am running 1v95.4 on the NODE MCU ESP8266 dev board. When I run this code...

    var temp = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
    
    var send = function(times, i) {
      console.log('foobar', i);
      
      
      if (i < times.length) {
        send(times, i + 1);
      }
    };
    
    send(temp, 1);
    

    I get this...

    >foobar 1
    foobar 2
    foobar 3
    foobar 4
    foobar 5
    foobar 6
    foobar 7
    foobar 8
    foobar 9
    foobar 10
    foobar 11
    foobar 12
    foobar 13
    ERROR: Prompt not detected - upload failed. Trying to recover...
    

    Some times it will make it to 16, but it always hangs. Does anyone know what may be happening here?

Actions