You are reading a single comment by @user111618 and its replies. Click here to read the full conversation.
  • I guess require("Storage").compact(); can't work because storage space is to small for what you are trying.

    What about eraseAll(), write .boot and usercode, or by a 4MB board or

    build a 1MB firmware Espruino version without FOTA but lots of space like a 4MB board.

            BOARD=ESP8266_4MB make clean
            BOARD=ESP8266_4MB RELEASE=1 NO_FOTA=1 FLASH_1MB=1 make 
    

    Fixed typo

  • I have NodeMCU(32MB version), but the size(physical) is too big. And my project only needs 2 IOs.

    Besides, this happened when I tried to require("Storage").compact();, the free space on the flash at least has 60%, and my purpose is to compact it myself instead of automatically(when the free space run out), cause that will lead to data loss.

    And I don't know how to compile it myself, I cloned the source and tried to compile, but I have no idea where I could find the hex file, I am noob. :D.

    But anyway, thank you for the reply.

About

Avatar for user111618 @user111618 started