← index #5010Issue #2527
Related · high · value 0.429
QUERY · ISSUE

Pyboard D: space in flash for frozen bytecode

openby peterhinchopened 2019-08-15updated 2019-10-05
port-stm32

This is limited compared to the Pyboard 1.x. In order to compile for the SF2W I had to minimise the number of files in the modules directory otherwise (after ensuring a clean build) I get

... successful output omitted ...
LINK build-PYBD_SF2/firmware.elf
arm-none-eabi-ld: build-PYBD_SF2/firmware.elf section `.text' will not fit in region `FLASH_APP'
arm-none-eabi-ld: region `FLASH_APP' overflowed by 15724 bytes
Makefile:538: recipe for target 'build-PYBD_SF2/firmware.elf' failed
make: *** [build-PYBD_SF2/firmware.elf] Error 1
Build failure

Is this a hardware limitation or is there a way to specify more space for frozen bytecode?

CANDIDATE · ISSUE

ESP Build broken?

closedby mkarlineropened 2016-10-17updated 2016-10-18
port-esp8266

I've just tried a new ESP build for the first time in a couple of weeks.
I'm getting the following error:

xtensa-lx106-elf-ld: build/firmware.elf section .text' will not fit in regioniram1_0_seg'
xtensa-lx106-elf-ld: region `iram1_0_seg' overflowed by 152 bytes
make: *** [build/firmware.elf] Error 1

Reading previous issues, the last time this occurred, it was caused by an
out of data compiler, so to be sure, I've just pulled down a fresh clone of
the compiler and built that, and I'm still getting the error.

I have the following list of frozen modules, but removing say,
uasyncio has not changed the size of the overflow.

MPY modules/_boot.py
MPY modules/ds18x20.py
MPY modules/encoder.py
MPY modules/flashbdev.py
MPY modules/logging.py
MPY modules/onewire.py
MPY modules/robust.py
MPY modules/sh1106.py
MPY modules/simple.py
MPY modules/ssd1306.py
MPY modules/test.py
MPY modules/uasyncio.py
MPY modules/webrepl.py
MPY modules/webrepl_setup.py
Creating build/frozen_mpy.c
CC build/frozen_mpy.c

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied