This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Region `FLASH' overflowed by X bytes

Hello everybody!

I'm developing an application using CMSIS DSP library, so i included about 20 math files and using finctions from these files.

After compiling i get a linker errror:

1>            FLASH:      417260 B       256 KB    159.17%
1>             SRAM:       43728 B       128 KB     33.36%
1> c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: zephyr\zephyr_prebuilt.elf section `rodata' will not fit in region `FLASH'
1> c:/gnuarmemb/bin/../lib/gcc/arm-none-eabi/7.3.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 155116 bytes
1> collect2.exe: error: ld returned 1 exit status
 

As i know, NRF9160 has 1 Mb of FLASH, but linker tells that i have overflow of 256 Kb.

How can i fix this problem with linker or smth else in this situation?

Thank you!

Related