• I was browsing the 2v07 firmwares downloaded from https://www.espruino.com/Download, and found out that Espruino firmware on STM32 VL Discovery is only about 116.3 KB while for other boards at least around 220 KB (even without hardware modules like WiFi, Bluetooth, etc.).
    Is that because of the size of fundamental libraries used for supporting STM32 VL Discovery is much smaller?

    Best regards

  • Because there is no more space :)
    The VL Discovery has only 128k flash, and there is some space reserved for saving code, so the board can run code standalone.

    You can compare the board files, for example PICO vs VL Discovery. That Discovery board only includes neopixel, and has SAVE_ON_FLASH - removing bunch of features. While the PICO has USB, networking, graphics, encryption etc libraries built-in.

  • Aha! Thank you so much. Your example is very helpful!

  • The VL Discovery has only 128k flash, and there is some space reserved for saving code, so the board can run code standalone.

    Do you know where the space for saving code is reserved? Because I haven't found 'saved_code' defined in the board definition file STM32VLDISCOVERY.py.

  • STM32 is one of the very first boards Espruino ever ran on, so the code to handle them is a bit 'legacy' - I believe it is here: https://github.com/espruino/Espruino/blo­b/master/scripts/build_platform_config.p­y#L113

  • Interesting! Thanks :D

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

Why is the firmware size for STM32 VL Discovery much smaller than other boards

Posted by Avatar for Ragtime @Ragtime

Actions