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

Does SoftDevice S112 or S113 offer mesh support on a nRF52811?

Does SoftDevice S112 or S113 offer mesh support on a nRF52811?

The intended use is for an end-device running very simple app-logic. According to the SoftDevice properties in "s112_nrf52_7.0.1_release-notes.pdf" the combined MBR and SoftDevice memory requirements are 100.0 kB flash and 3.7 kB RAM. That leaves about 24 kb so it ought to be doable if the application fits within that space, isn't it? 

What I also couldn't figure out, is if the mesh functionality affects the call stack heavily. The release notes states that the worst-case stack usage is 1.5 kB but that seems a bit low.

Btw, what's basic difference between S112 and S113? I couldn't find any comparison charts regarding this.

  • Thanks, that was exactly the kind of information I was looking for regarding resource sizing. I suppose you need to check the resource usage of all sub-systems to get a complete picture of the total need?

    However, I was referring to the “call stack” info in the S112 SoftDevice Release Notes “s112_nrf52_7.0.1_release-notes.pdf” (s112_nrf52_7.0.1.zip) where it states “The worst-case stack usage for the SoftDevice is 1.5 kB (0x600 bytes)”. But as you pointed out, the resource usage page for Mesh v.4.0.0 states “requires a minimum call stack size of 2 kB”.

    I must be missing som fundamentals because I can't get it together, can you please give me a hint how these things add up?

    Thanks, Lars.


    S112 SoftDevice properties (s112_nrf52_7.0.1)

    • This SoftDevice variant is compatible with nRF52805, nRF52810, nRF52811 and nRF52832.
    • This SoftDevice contains the Master Boot Record (MBR) version 2.4.1 (DRGN-10680).
      • This MBR version is compatible with previous MBR versions.
    • The combined MBR and SoftDevice memory requirements for this version are as follows:
      • Flash: 100.0 kB (0x19000 bytes)
      • RAM: 3.7 kB (0xeb8 bytes). This is the minimum required memory. The actual requirements depend on the configuration chosen at sd_ble_enable() time.
      • Call stack: The SoftDevice uses a call stack combined with the application. The worst-case stack usage for the SoftDevice is 1.5 kB (0x600 bytes). Application writers should ensure that enough stack space is reserved to cover the worst-case SoftDevice call stack usage combined with the worst-case application call stack usage.
    • The Firmware ID of this SoftDevice is 0x00CD.

  • Hi Lars

    What is it you need to add up? The overall stack size will depend on SoftDevice stack usage + Application stack usage. Seeing as the Mesh stack requires a minimum call stack size of 2kB, and the worst-case stack usage for the SoftDevice is 1.5kB (this will only occur in corner cases) this will make the total stack size ~3.5kB. You can modify the stack size in your project, as well as the Flash and RAM start/end addresses for your application.

    Best regards,

    Simon

  • I just got an update from the development team, and since the nRF52811 isn't mentioned in the Mesh compatibility section, it can not be considered to be officially supported (even limited), but that doesn't mean that it doesn't work. We just can't guarantee that it will work. Although I don't see why it shouldn't. I just wanted to mention that as a sort of disclaimer for you.

    Best regards,

    Simon

Related