You are reading a single comment by @ja_hurtado and its replies. Click here to read the full conversation.
  • Hi guys,

    I noticed that I have less memory available when I build from sources than then already available firmwares

    I did the tests with the release 2V01 and ESP32 board. These are the results:

    Downloaded Firmware RELEASE 2V01

    File sizes:

       15168 abr 16 10:34 bootloader.bin
     1346960 abr 16 10:34 espruino_esp32.bin
        3072 abr 16 10:34 partitions_espruino.bin
    

    Info from Espruino IDE:

    >reset();
    =undefined
    WARNING: gap set scan error code = 103
    WARNING: set rssi scan not implemeted yet
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v01 (c) 2018 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >process.memory();
    ={ free: 3975, usage: 25, total: 4000, history: 0,
      gc: 0, gctime: 3.044 }
    >process.env
    ={
      VERSION: "2v01",
      GIT_COMMIT: "748a4d3",
      BOARD: "ESP32",
      FLASH: 0, RAM: 524288,
      SERIAL: "807d3ac7-1f04",
      CONSOLE: "Serial1",
      MODULES: "Flash,Storage,hea" ... "r,crypto,neopixel",
      EXPTR: 1073484864 }
    >ESP32.getState();
    ={
      sdkVersion: "v3.1",
      freeHeap: 37176, BLE: false, Wifi: true, minHeap: 34708 }
    

    Build from source: git tag == RELEASE_2V01

    File sizes:

       15392 abr 16 10:39 bootloader.bin
     1363648 abr 16 10:39 espruino_esp32.bin
        3072 abr 16 10:39 partitions_espruino.bin
    

    Info from Espruino IDE:

    >reset();
    =undefined
    WARNING: gap set scan error code = 103
    WARNING: set rssi scan not implemeted yet
     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v01 (c) 2018 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    >process.memory();
    ={ free: 2875, usage: 25, total: 2900, history: 0,
      gc: 0, gctime: 2.305 }
    >process.env
    ={
      VERSION: "2v01",
      GIT_COMMIT: "748a4d37",
      BOARD: "ESP32",
      FLASH: 0, RAM: 524288,
      SERIAL: "807d3ac7-1f04",
      CONSOLE: "Serial1",
      MODULES: "Flash,Storage,hea" ... "r,crypto,neopixel",
      EXPTR: 1073484860 }
    >ESP32.getState();
    ={
      sdkVersion: "v3.1.3-dirty",
      freeHeap: 36396, BLE: false, Wifi: true, minHeap: 34076 }
    > 
    
    

    I have a total of 2900 memory units in the custom build over the 4000 in the downloaded firmware (BLE is disabled). I think is a big difference for the same version (NOTE: The ESP32 toolchain used is xtensa-esp32-elf-linux64-1.22.0-73-ge28a011-5.2.0.tar.gz)

    Anyone knows what could be the reason?

    Thanks,
    Jose.

About

Avatar for ja_hurtado @ja_hurtado started