ESP32: Significant size increase with MICROPY_ROM_TEXT_COMPRESSION and external modules #17479
Unanswered
ricksorensen
asked this question in
ESP32
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I do no know if this is a
micropython
code issue or from the external modules.This is a reprise of #17225 which I prematurely marked as closed. If I compile a
GENERIC_C3
orGENERIC_S3
board with ulab, the size increased significantly from v1.25 to the v1.26-preview versions. It appears theMICROPY_ROM_TEXT_COMPRESSION
setting contributes to the issue. Compiling today (20250611 11AM CST approx) I see these sizes formicropython.bin
, compilint with IDF 5.2.2 for the C3: (same is true for S3)When text compression is enabled, the
st7789
and theulab
builds increase in size significantly, while the `examples/usercmodule' build decreases in size. Neither RP2 nor unix modules seem to exhibit this growth,I cannot figure out why this is happening- the scripts look okay (to me). I expect there is something that should be modified in the ulab/st7789 code to allow this compression to work correctly, but I am not sure if that is true.
Note- the compression cannot be disabled without changing 'esp32_common.cmake
which forces the
MICROPY_ROM_TEXT_COMPRESSIONto
ON. To test I created a new version to force it
OFF`.I do not use cmake often but I expect the conditional should check for a defined variable, not just True/False.
The build process I used was on
ubuntu24,04
. This is the build script:Beta Was this translation helpful? Give feedback.
All reactions