FLASH and SRAM overflow error

Hi,

 When I try to build a 'light_switch' project on SEGGER embedded studio for nRF connect SDK 1.9.1 for BMD-330-EVAL board. Running into the following error 

 arm-none-eabi/bin/ld.exe: zephyr\zephyr_pre0.elf section `text' will not fit in region `FLASH'
 v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: zephyr\zephyr_pre0.elf section `noinit' will not fit in region `SRAM'
 /v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 69824 bytes
 v1.9.1/toolchain/opt/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: region `SRAM' overflowed by 25031 bytes

Not able to find flash_placement.xml to make any changes as suggested in a few threads. The 

  • Hi,

    We have light switch examples for several protocols. I am most familiar with Bluetooth mesh, which is not supported on the nRF52810, mostly due to insufficient flash and RAM, which seems to be what you experience. The same is also true for some of the other protocols, such as Thread and Zigbee.

    Bluetooth mesh is supported on nRF52832, nRF52833 and nRF52840.

    Thread and Zigbee are supported on nRF52833 and nRF52840.

    For Bluetooth mesh, if you want to experiment with building on devices with little space you could have a look at the microbit configuration files under \zephyr\samples\bluetooth\mesh, which contains configurations optimized for low flash and RAM usage.

    Regards,
    Terje

  • Hi Terje,

         Thanks for the update. Which example do you think I should try? Just need BLE with GATT service running 

    Thanks

    Sachin

  • Hi,

    If you just want to try a BLE example, then for instance Bluetooth: Peripheral LBS might be a good place to start. It uses a custom BLE service named the LED Button Service, to showcase how to use a vendor specific service, and apart from that it is just a basic BLE application example.

    I got the impression from your opening post that you were looking into a mesh network. If you are, then any of the Mesh exmaples at the bottom of the Bluetooth samples listing might be of value.

    Regards,
    Terje

Related