• 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.

  • AFAIK the FLASH in process.env shows the total amount of flash on the chip. Defined in boards/BOARD_NAME.py. If I'm right, that is kind of irrelevant from the end users's perspective.

    The ESP8266 has all kinds of funky flash parts, I think that's the reason there are multiple free flash regions. For STM32 and nRF parts, the free flash area is continuous.

About

Avatar for AkosLukacs @AkosLukacs started