• Hi all, I'm running a v1.0 of Nodemcu loaded with espruino_1v84.tve_master_d8dec28_esp8266­ of the firmware.

    First off: I must say that JS on the ESP8266 is SO much more stable than the stock LUA! The library support in comparison is amazing too.

    Now to the problem: I've got my codes working. save() wrote my code and soft-booted. Everything is perfect. But when I do a hard reset (via esp8266.restart()) nothing starts up. I suspect this has something to do with it (screen upon startup):

     ets Jan  8 2013,rst cause:2, boot mode:(3,0)
    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       : QIO
      SPI Flash Size & Map: 4Mbit(256KB+256KB)
    jump to run user1 @ 1000
    don't use rtc mem data
    rl
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v84.tve_master_d8dec28 Copyright 2015 G.Williams
    WARNING: the esp8266 port is in beta!
    Flash map 512KB:256/256, manuf 0xe0 chip 0x4016
    WARNING: *** Your flash chip does not match your flash map ***
    

    Can someone advise how I should correct my firmware install?

  • The warning on the last line is the red herring. My nodemcu uses the ESP-12 model and I should be loading the firmware with this string:
    esptool.py --port COM3 --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

    Thanks SpenceKonde for your confirmation on IRC

  • Thanks! Glad you got it sorted :)

  • I still get the warning :(

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

[nodemcu v1.0] Getting onInit() to run on power-up

Posted by Avatar for jhfoo @jhfoo

Actions