Page 1 of 1

Running custom C module on external flash

Posted: Thu May 06, 2021 10:31 am
by corjan
Hi,


For the Pyboard D 2, I'm trying to add a custom C library that is quite big.

Too big to fit on the APP_FLASH section of the pyboard D 2:

Code: Select all

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 10184 bytes
Is there a way to move this C library to the external flash somehow or freeing up some of the FLASH_APP space?


Corjan

Re: Running custom C module on external flash

Posted: Thu May 06, 2021 1:13 pm
by rcolistete
See pages 8 and 9 of this topic, "ulab, or what you will - numpy on bare metal", about "FLASH_APP", "FLASH_EXT,", etc :
viewtopic.php?f=3&t=7005&p=49102
viewtopic.php?f=3&t=7005&p=49232