You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Laczen JMS <la...@gmail.com> on 2017/09/11 15:47:57 UTC

Bluetooth mesh on nrf51822 possible ?

Hi,

I am trying to build the bluetooth mesh example for a nrf51822 with
32kb ram. I fail to get it inside the 110kb flash limit. Is it
possible to build the example for nrf51822 ? How can I make it as
small as possible ?

Kind regards,

Jehudi

Re: Bluetooth mesh on nrf51822 possible ?

Posted by Łukasz Rymanowski <lu...@codecoup.pl>.
Hi Jehudi,

I'm afraid it is not possible to fit into 110kB flash.
Current Mesh configuration supports both PB-GATT and PB-ADV and with
this settings we need 53k flash and 3.7k RAM. When we remove PB-GATT
and Friend support I see it drops to 46k flash. Further optimization
is possible but should be done carefully and I doubt it will gives us
much more.
Anyway, to this number you need to add Nimble stack (~70kB), drivers,
app ...and we are over 110kB

But for nrf51 you can play a bit with a bsp.flash_map and configure
slot1 to make it bigger - at least for testing should be good.

Hope that helps

Best
Łukasz

On 11 September 2017 at 17:47, Laczen JMS <la...@gmail.com> wrote:
> Hi,
>
> I am trying to build the bluetooth mesh example for a nrf51822 with
> 32kb ram. I fail to get it inside the 110kb flash limit. Is it
> possible to build the example for nrf51822 ? How can I make it as
> small as possible ?
>
> Kind regards,
>
> Jehudi