You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Sherlock Labs <is...@gmail.com> on 2020/09/21 08:54:22 UTC

RAM overflow for nrf51-16Kb target

Hi,
I tried to compile the code following turotial for ibeacon
https://mynewt.apache.org/latest/tutorials/ble/ibeacon.html

only change was setting target nordic_pca10028-16k, my module has NRF51822
-QFAAH2 which has 16KB of ram.

on build i get error
"ble_app.elf section `.bss' will not fit in region `RAM'"

"region RAM overflowed with stack"

"region `RAM' overflowed by 1676 bytes"


i see linker has

MEMORY

{

  FLASH (rx) : ORIGIN = 0x00008000, LENGTH = 0x1b800

  RAM (rwx) :  ORIGIN = 0x20000000, LENGTH = 0x4000

}


/* This linker script is used for images and thus contains an image header
*/

_imghdr_size = 0x20;

do we have active support on nimble on nrf51-16Kb or not

Thanks
Mohit

Re: RAM overflow for nrf51-16Kb target

Posted by Szymon Janc <sz...@codecoup.pl>.
Hi,

You probably need to fine tune some of the syscfg values.
I suggest starting with OS_MAIN_STACK_SIZE, by default it is 1024
(4096 bytes) and probably you don't need such a big stack.

newt size (-R) should help you to do further fine tuning if needed.


On Mon, 21 Sep 2020 at 15:41, Sherlock Labs <is...@gmail.com> wrote:
>
> Hi,
> I tried to compile the code following turotial for ibeacon
> https://mynewt.apache.org/latest/tutorials/ble/ibeacon.html
>
> only change was setting target nordic_pca10028-16k, my module has NRF51822
> -QFAAH2 which has 16KB of ram.
>
> on build i get error
> "ble_app.elf section `.bss' will not fit in region `RAM'"
>
> "region RAM overflowed with stack"
>
> "region `RAM' overflowed by 1676 bytes"
>
>
> i see linker has
>
> MEMORY
>
> {
>
>   FLASH (rx) : ORIGIN = 0x00008000, LENGTH = 0x1b800
>
>   RAM (rwx) :  ORIGIN = 0x20000000, LENGTH = 0x4000
>
> }
>
>
> /* This linker script is used for images and thus contains an image header
> */
>
> _imghdr_size = 0x20;
>
> do we have active support on nimble on nrf51-16Kb or not
>
> Thanks
> Mohit



-- 
pozdrawiam
Szymon K. Janc