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

SRAM image allocation

Dear,nordic:

       

  • Please help me allocate more than 80KB of memory on this routine.

        SDK : ncs v1.2;


        samples : asset tracker;

        path : ncs\v1.2.0\nrf\applications\asset_tracker;

        function : k_mem_slab_init(&slab, buff, 16, 6400);

        error : failed, see below:

      

Parents Reply Children
  • Hi.

    First, are you absolutely 100% sure you need a buffer that large?

    As the bsdlib partition cannot be moved, the non-secure SRAM partition can not be expanded to 160kB while you also use the bsdlib, which is necessary to use the modem.

    You might be able to free up the necessary RAM by reducing the number of Zephyr's features you use, and by reducing the stack used by all the threads in the system.

    You might also be able to split up the buffer into smaller pieces and allocate those separately.

    Best regards,

    Didrik

Related