• Flash is ok.

    >process.env
    ={
      VERSION: "2v04.6",
      GIT_COMMIT: "c2087d40",
      BOARD: "ESP8266_4MB",
      FLASH: 0, RAM: 81920,
      SERIAL: "18fe34d1-8934",
      CONSOLE: "Serial1",
      MODULES: "Flash,Storage,hea" ... ",ESP8266,neopixel",
      EXPTR: 1073643644 }
    >
    >require("Flash").getFree()
    =[
      { addr: 2097152, length: 1048576 },
      { addr: 3145728, length: 262144 },
      { addr: 3407872, length: 262144 },
      { addr: 3670016, length: 262144 },
      { addr: 3932160, length: 241664 }
     ]
    > 
    

    Restarting the Web IDE and reconnecting the board should fix the serial connection.

  • Wed 2019.09.14

    Thank you for posting that test @maze1980, so it appears for the ESP8266 build that process.env does in fact return a '0' value.

    http://www.espruino.com/Reference#Flash
    ' representing contiguous areas of flash '

    It appears this is going to take a bit of study, as I don't see how these apply when they don't agree. (WiFi board here though)

    >require("Flash").getFree()
    =[
      { addr: 134234112, length: 49152 }
     ]
    
     
      "BOARD": "ESPRUINOWIFI",
      "FLASH": 524288, "RAM": 131072,
    
    
    524288 / 16 = 32,768
    524288 / 12 = 43,690
    

    Not intending to muddy this thread with another issue, just posting an observation for @seometis to test and observe.

About

Avatar for maze1980 @maze1980 started