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

thingy91 serial lte modem flash memory issue

Hi,

I am trying to open serial lte modem app to evaluate power profile on thingy91.  i am using toolchain manager (v1.4.99-dev1) to open Segger Embedded Studio.

While building the solution, I am having an error as below:

1> Memory region Used Size Region Size %age Used
1> FLASH: 65024 B 48 KB 132.29%
1> SRAM: 10984 B 64 KB 16.76%
1> IDT_LIST: 88 B 2 KB 4.30d:/ncs/v1.4.99-dev1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: zephyr\zephyr_prebuilt.elf section `.gnu.sgstubs' will not fit in region `FLASH'
1> d:/ncs/v1.4.99-dev1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: SPM and app are sharing an SPU region. Cannot partition flash correctly into secure and non-secure. Adjust partitions sizes so they are placed in separate regions.
1> d:/ncs/v1.4.99-dev1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 15872 bytes
1> collect2.exe: error: ld returned 1 exit status
1> %
1> ninja: build stopped: subcommand failed.
Build failed

ı tested with nrf9160dk and it is ok.

Am i missing something ? 

Regards,

Hamit

Parents Reply Children
  • It is great! Thanks very much Simon.

    After the relevant changes on spm, now i am able to build the slm app.

    1> [245/250] Linking C executable zephyr\zephyr_prebuilt.elf
    1> Memory region Used Size Region Size %age Used
    1> FLASH: 44596 B 48 KB 90.73%
    1> SRAM: 25264 B 128 KB 19.27%
    1> IDT_LIST: 88 B 2 KB 4.30%
    1> [246/250] Generating linker_pass_final.cmd

    Regards,

    Hamit

Related