Flash overflow?

Hello,

I'm trying to merge together a couple of sample projects to make a prototype (in particular, the LTE-BLE gateway, and AWS-IoT samples) - to run on the nRF 9160DK

When I try and compile, I get the following errors:

/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `text' will not fit in region `FLASH'

/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH' overflowed by 119504 bytes

How can I resolve this please? Or is it just too big to try and fit onto the Dev Kit?

Regards,

Ben

Parents
  • I can reproduce the error you mentioned.

    I see that the faulting address on mine is 0x0001f458.

    Doing and addr2line shows this

    $ arm-none-eabi-addr2line -e E:\ncs\v2.6.0\nrf\samples\cellular\324344\build\zephyr\zephyr.elf -a 0x0001f458
    0x0001f458
    E:/ncs/v2.6.0/zephyr/subsys/bluetooth/host/hci_core.c:333 (discriminator 3)

    This seems like a corrupt stack that means that the hardfault log info cannot be trusted.

    I am trying to enable Thread Analyzer to see if it gives any more info than basic hardfault. Will be back to you soon.

Reply
  • I can reproduce the error you mentioned.

    I see that the faulting address on mine is 0x0001f458.

    Doing and addr2line shows this

    $ arm-none-eabi-addr2line -e E:\ncs\v2.6.0\nrf\samples\cellular\324344\build\zephyr\zephyr.elf -a 0x0001f458
    0x0001f458
    E:/ncs/v2.6.0/zephyr/subsys/bluetooth/host/hci_core.c:333 (discriminator 3)

    This seems like a corrupt stack that means that the hardfault log info cannot be trusted.

    I am trying to enable Thread Analyzer to see if it gives any more info than basic hardfault. Will be back to you soon.

Children
No Data
Related