'.text' will not fit in region 'APP_FLASH'

Hi there,

While trying to compile using the online IDE I get the following message:

/usr/local/gcc-arm-embedded-gcc-arm-none-eabi-4_8-2014q2-20140609-linux-tar-bz2/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: 0215818fdfba86bccfbd2ba08a314bb50ee8a862fab96a8c042e7e04f1ef.elf section `.text' will not fit in region `APP_FLASH'
/usr/local/gcc-arm-embedded-gcc-arm-none-eabi-4_8-2014q2-20140609-linux-tar-bz2/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/bin/ld: region `APP_FLASH' overflowed by 71472 bytes
collect2: error: ld returned 1 exit status
make[1]: *** [0215818fdfba86bccfbd2ba08a314bb50ee8a862fab96a8c042e7e04f1ef.elf] Error 1
make: *** [main] Error 2

What is the common cause to this issue? Is it simply due to the size of the code, or some of the data structures?

Thanks.

It seems your code is too big for the target device.
.text refers to the code portion of your source.

See https://mcuoneclipse.com/2013/04/14/text-data-and-bss-code-and-data-size-explained/