MP 1.17 + ulab = too big for TinyPICO?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
User avatar
mathieu
Posts: 88
Joined: Fri Nov 10, 2017 9:57 pm

MP 1.17 + ulab = too big for TinyPICO?

Post by mathieu » Mon Oct 18, 2021 8:56 am

I'm trying to compile MicroPython 1.17 with ulab on a TinyPICO (BOARD = UM_TINYPICO). Without removing anything from ulab, I get the following message:

Code: Select all

Project build complete. To flash, run this command:
/Users/mathieu/.espressif/python_env/idf4.1_py3.9_env/bin/python ../../esp-idf/components/esptool_py/esptool/esptool.py -p (PORT) -b 460800 --before default_reset --after hard_reset --chip esp32  write_flash --flash_mode dio --flash_size detect --flash_freq 80m 0x1000 build-UM_TINYPICO/bootloader/bootloader.bin 0x8000 build-UM_TINYPICO/partition_table/partition-table.bin 0x10000 build-UM_TINYPICO/micropython.bin
or run 'idf.py -p (PORT) flash'
bootloader  @0x001000    22144  (    6528 remaining)
partitions  @0x008000     3072  (    1024 remaining)
application @0x010000  1695568  ( -122704 remaining)
ERROR: application overflows allocated space of 1572864 bytes by 122704 bytes
make: *** [all] Error 1
After removing everything I can think of from ulab, my firmware is still too big:

Code: Select all

ERROR: application overflows allocated space of 1572864 bytes by 65664 bytes
What are my options at this point? Can I easily disable some libraries from MicroPython itself? Can I tell the compiler to use more of the 4MB available (I think) on the ESP32-PICO-D4?

wangshujun@tom.com
Posts: 61
Joined: Fri Feb 15, 2019 9:22 am

Re: MP 1.17 + ulab = too big for TinyPICO?

Post by wangshujun@tom.com » Tue Oct 19, 2021 2:12 pm

If flash has 4 megabytes, modifying the partition represents a better choice

PM-TPI
Posts: 75
Joined: Fri Jun 28, 2019 3:09 pm

Re: MP 1.17 + ulab = too big for TinyPICO?

Post by PM-TPI » Sun Dec 05, 2021 12:24 pm

Using a ESP32 4Mb AND LVGL (lv_micropython v8.1.1-dev) with v1.17 (mp build-GENERIC_SPIRAM)
Never had application overflows.
Were there changes to the default pattion sizes in mp ?

Code: Select all

Project build complete. To flash, run this command: ....
bootloader  @0x001000    23264  (    5408 remaining)
partitions  @0x008000     3072  (    1024 remaining)
application @0x010000  2380288  (  -20992 remaining)
ERROR: application overflows allocated space of 2359296 bytes by 20992 bytes
make: *** [Makefile:35: all] Error 1
make: Leaving directory '/mnt/c/SmartLOG/FW/Build/lv_micropython-v8.1-mpy-1.17/ports/esp32'
I have a mp v1.15 firmware.bin = 2334KB
And the mp v1.17 firmware.bin = 2385KB

need to drop some modules !!!

v923z
Posts: 168
Joined: Mon Dec 28, 2015 6:19 pm

Re: MP 1.17 + ulab = too big for TinyPICO?

Post by v923z » Sat Jan 08, 2022 8:04 am

You can also try to reduce the number of dimensions, or remove functions that you don't need: https://micropython-ulab.readthedocs.io ... e-firmware You can really save a lot by including only what you need.

Post Reply