Running custom C module on external flash

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
corjan
Posts: 1
Joined: Thu May 06, 2021 7:34 am

Running custom C module on external flash

Post by corjan » Thu May 06, 2021 10:31 am

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

User avatar
rcolistete
Posts: 352
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Re: Running custom C module on external flash

Post by rcolistete » Thu May 06, 2021 1:13 pm

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
My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

Post Reply