Avatar for Frida

Frida

Member since Sep 2013 • Last active Mar 2017
  • 18 conversations
  • 127 comments

Most recent activity

  • in ESP8266
    Avatar for Frida

    Even I only do a erase_flash without setting ESP in boot mode, it's the same.
    From the console in settings.

    conection ok

    Initialising Debugger
    Initialising Tour
    Initialising SettingsProfile
    Initialising HelpLinks
    Loaded code from storage.
    >>> Connecting...
    Set Slow Write = true
    [object Object]
    Connected [object Object]
    Received a prompt after sending newline... good!
    >>> Sending...
    ---> "\u0010console.log(\"<\",\"<<\",JSON.str­ingify(process.env),\">>\",\">\")\n"
    >>> Sent
    Got "< << {\"VERSION\":\"1v91.66\",\"BUILD_DATE\":­\"Mar  5 2017\",\"BUILD_TIME\":\"14:37:09\",\"GIT­_COMMIT\":\"567fee8447461adf4a57d7630192­9b3f63edb601\",\"BOARD\":\"ESP8266_BOARD­\",\"CHIP\":\"ESP8266\",\"CHIP_FAMILY\":­\"ESP8266\",\"FLASH\":0,\"RAM\":81920,\"­SERIAL\":\"18fe349d-47ca\",\"CONSOLE\":\­"Serial1\",\"EXPORTS\":{\"jsvLock\":1075­850320,\"jsvLockAgainSafe\":1075850372,\­"jsvUnLock\":1075850744,\"jsvSkipName\":­1075859352,\"jsvMathsOp\":1075864552,\"j­svMathsOpSkipNames\":1075866244,\"jsvNew­FromFloat\":1075857060,\"jsvNewFromInteg­er\":1075856960,\"jsvNewFromString\":107­5856620,\"jsvNewFromBool\":1075857028,\"­jsvGetFloat\":1075862368,\"jsvGetInteger­\":1075858848,\"jsvGetBool\":1075862728,­\"jspeiFindInScopes\":1075877572,\"jspRe­placeWith\":1075877292,\"jspeFunctionCal­l\":1075887616,\"jspGetNamedVariable\":1­075879416,\"jspGetNamedField\":107587986­0,\"jspGetVarNamedField\":1075879992,\"j­svNewWithFlags\":1075856360}} >> >\r\n>"
    Loading http://www.espruino.com/json/ESP8266_BOA­RD.json
    Device found (connectionId=1)
    [success] Connected to port /dev/ttyUSB0
    >>> Connected to port /dev/ttyUSB0
    Board JSON loaded
    Set Slow Write = true
    FIRMWARE: Current 1v91.66, Available 1v91
    

    conection lost

    Initialising Debugger
    Initialising Tour
    Initialising SettingsProfile
    Initialising HelpLinks
    Loaded code from storage.
    >>> Connecting...
    Set Slow Write = true
    [object Object]
    Connected [object Object]
    ERROR: RECEIVE ERROR: {"connectionId":1,"error":"device_lost"}­
    Disconnect callback...
    WARNING: [notify_warn] Disconnected
    >>> Disconnected
    ERROR: executeExpression called when not connected!
    
  • in ESP8266
    Avatar for Frida

    I have to restart my computer after I have flashed ESP8266-01, to use Espruino Web IDE,because it won't connect.

    Connected
    >
    Disconnected
    
    

    I use Mint 18.1 and chromium.
    I have tried to pull the USB cable, and log out, login.
    I can connect via GtkTerm without restart.

    Before christmas it worked allright.
    Anybody have the same behavior?

  • in General
    Avatar for Frida

    I've made a donation for 4 sonoff, I want to use in my house. 4$ per stk.
    Is it enough? I donated for 2 f3'er in 2013 also.

  • started
    • 5 comments
    • 223 views
  • in ESP8266
    Avatar for Frida

    It is after a new flash, after a reset() and then save() it behaves ok.

    esp8266 new flash

    >load()
    =undefined
    No code in flash!
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    

    after reset() and save()

    >load()
    =undefined
    Loading 1133 bytes from flash...
    

    pico new flash

    >load()
    =undefined
    No code in flash!
    

    after reset() and save()

    >load()
    =undefined
    Loading 2527 bytes from flash...
    > 
    >
    
  • in ESP8266
    Avatar for Frida

    Now I learnt to use 'load()'.

    on PICO

    >reset();
    =undefined
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v91 Copyright 2016 G.Williams
    >
    =undefined
    >load()
    =undefined
    No code in flash!
    > 
    

    on ESP8266

    >reset();
    =undefined
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v90.38 Copyright 2016 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 512KB:256/256, manuf 0xe0 chip 0x4014
    >load()
    =undefined
    No code in flash!
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    ERROR: Not connected to the internet
    

    It continues ultil I reset, or power off.

  • in Interfacing
    Avatar for Frida

    ti.com/lit/ds/symlink/bq27441­-g1.pdf
    In section: 9.5.4.4
    I2C Clock Stretching

    I don't know if PICO has clock stretching.
    And remember pullup on both SDA and SCL.

  • in ESP8266
    Avatar for Frida

    From README_flash.txt:

    *** To flash a 4MB esp8266 (e.g. esp-12) using the serial port use:
    esptool.py --port [/dev/ttyUSB0|COM1] --baud 115200 write_flash \
      --flash_freq 80m --flash_mode qio --flash_size 32m \
      0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin \
      0x3FC000 esp_init_data_default.bin 0x37E000 blank.bin
    
    

    Yours:

    esptool.py --port /dev/cu.usbserial --baud 460800 write_flash \
      --flash_freq 80m --flash_mode qio --flash_size 4MB \
      0x0000 boot_v1.6.bin 0x1000 espruino_esp8266_user1.bin \
      0x37C000 esp_init_data_default.bin 0x37E000 blank.bin
    

    I don't have a 12'er, but you use:

    0x3FC000 esp_init_data_default.bin
    
    

    and in the text:

    0x37C000 esp_init_data_default.bin
    

    Could it be it?

  • in ESP8266
    Avatar for Frida

    with the latest version of:

    esptool.py version
    esptool.py v2.0-dev
    2.0-dev
    

    and download today of:

    Espruino
    esp-open-sdk
    

    I flashed esp8266-01 with this setup:
    First:

    esptool.py --port /dev/ttyUSB0 erase_flash,
    

    then:

    esptool.py --port /dev/ttyUSB0 --baud 230400 write_flash \
     --flash_freq 40m --flash_mode qio --flash_size 512KB \
     0x0000 "boot_v1.6.bin" 0x1000 espruino_esp8266_user1.bin \
     0x7C000 esp_init_data_default.bin 0x7E000 blank.bin
    

    and are up running, but I had to restart before webide would run.

    AS you see, it is with boot_v1.6.bin.

    
    
    >process.env
    ={
      "VERSION": "1v90.38",
      "BUILD_DATE": "Jan  6 2017",
      "BUILD_TIME": "19:19:56",
      "GIT_COMMIT": "f403a657b257e4ae801a0fff12ec333005d4f92­5",
      "BOARD": "ESP8266_BOARD",
      "CHIP": "ESP8266",
      "CHIP_FAMILY": "ESP8266",
      "FLASH": 0, "RAM": 81920,
      "SERIAL": "18fe349d-47ca",
      "CONSOLE": "Serial1",
      "EXPORTS": { "jsvLock": 1075850320, "jsvLockAgainSafe": 1075850372, "jsvUnLock": 1075850744, "jsvSkipName": 1075859244,
        "jsvMathsOp": 1075864416, "jsvMathsOpSkipNames": 1075866112, "jsvNewFromFloat": 1075856988, "jsvNewFromInteger": 1075856888, "jsvNewFromString": 1075856548,
        "jsvNewFromBool": 1075856956, "jsvGetFloat": 1075862276, "jsvGetInteger": 1075858776, "jsvGetBool": 1075862604, "jspeiFindInScopes": 1075877408,
        "jspReplaceWith": 1075877128, "jspeFunctionCall": 1075887420, "jspGetNamedVariable": 1075879252, "jspGetNamedField": 1075879696, "jspGetVarNamedField": 1075879828,
        "jsvNewWithFlags": 1075856288 }
     }
    >process.memory()
    ={ "free": 1664, "usage": 36, "total": 1700, "history": 13 }
    > 
    
Actions