• I'm following this guide with a minor change: https://github.com/espruino/Espruino#bui­lding-under-windowsmacos-with-a-vm

    I am using the 64 bit version instead of the 32 bit version

    Error:

    GEN espruino_1v80_espruino_1r3.lst GEN espruino_1v80_espruino_1r3.bin
    bash scripts/check_size.sh espruino_1v80_espruino_1r3.bin FAIL - size
    of 238620 is over 215040 bytes make: ***
    [espruino_1v80_espruino_1r3.bin] Error 1 make: *** Waiting for
    unfinished jobs....

  • I executed: scripts/create_espruino_image_1v3.sh and I was able to successfully compile :-)

    I read in: https://github.com/espruino/Espruino#bui­lding-for-stm32-boards-incl-espruino-boa­rd that the user can remove features such as graphics. Are there any other features that I can remove to further shrink the binary down? I plan to attempt to custom compile a binary with AES encryption features (no promises that I will succeed).

    UPDATE
    I realize that I should of executed create_pico_image_1v3.sh instead of espruino 00ps...

  • Ahh - the thing you might have been missing is RELEASE=1 on the command-line. I'll update the docs (they mention it for Linux, but not when building using a VM). Building without RELEASE=1 compiles in debug checks, which take space and slow Espruino down, but which also make sure nothing is going horribly wrong with any changes that might have been made :)

    If you take a look in Makefile under ifdef PICO_1V3 you'll see lines titled USE_xxx that you can remove - however the Pico itself has almost certainly got enough free space without doing that - it's only the original Espruino board that's getting a bit tight now.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Custom compiling Espruino for Pico: FAIL - size of 238620 is over 215040 bytes

Posted by Avatar for d0773d @d0773d

Actions