platformio / platform-nxplpc

NXP LPC: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/nxplpc
Apache License 2.0
9 stars 12 forks source link

Base code will not fit in LPC11c24 mcu #28

Open jayalcock opened 2 years ago

jayalcock commented 2 years ago

Loading up a blank project and compiling without adding any additional code returns the following error:

......./.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: .pio/build/lpc11c24/firmware.elf section .text' will not fit in regionFLASH' ......./.platformio/packages/toolchain-gccarmnoneeabi/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 3204 bytes

Using NXP LPC11c24 (olimex).

jayalcock commented 2 years ago

Removing "framework = mbed" from platform.ini fixes the issue - albeit with no libraries

jayalcock commented 2 years ago

Also building bare metal Mbed framework still yields same size....?

jayalcock commented 2 years ago

Mbed studio compiles empty code to 12k in a 1114 and baremetal profile.

Total Flash memory (text + data): 12875(+12875) bytes

Platio compiles to 33k.