Board UM_TINYPICO compile iram overflow error#8525
Board UM_TINYPICO compile iram overflow error#8525stephanelsmith wants to merge 1 commit intomicropython:masterfrom
Conversation
|
This will probably reduce performance on this board. An alternative is to disable some of the IRAM wrappers like Might need to make a comparison of how those changes affect performance and go with the faster one. My feeling is that using -Os (what is done in this PR) is the better option, because it reduces code size overall, and still leaves those hot functions in IRAM 10BC0 (which is where most of the perf gain comes from). Might also be worth understanding why this board overflows on IDF 4.4 and GENERIC does not. |
It's because UM_TINYPICO enables SPIRAM. The GENERIC_SPIRAM board also overflows IRAM using IDF 4.4. (SPIRAM builds are larger because of a hardware bug that is avoided by the compiler inserting extra instructions.) So... I think the change in this PR is the right way to go, and should also be applied to GENERIC_SPIRAM. |
e72ac60 to
e15ab1a
Compare
TINYPICO firmware build failing with error: Micropython.elf section .iram0.text will not fit in region iram0_0_seg. Changing compiler option to -Os (CONFIG_COMPILER_OPTIMIZATION_SIZE=y) succesfully builds.
e15ab1a to
31f3c65
Compare
|
Merged in ae3d528, thank you! |
@UnexpectedMaker, working with tinypico firmwares, master micropython with esp-idf v4.4 is failing build for board UM_TINYPICO with error:
I believe it's related to this issue:
#8260
Adding the following line in boards/UM_TINYPICO/sdkconfig.board resolves issue
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
Which I believe translates to compiler option '-Os' to reduce size.