This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there a version of SoftDevice that crawls into CODE RAM

I believe that it may be advantageous (in some cases like an application short on FLASH with significant free RAM ) for a version of the soft device to

  1. have a significant portion compressed in FLASH
  2. on reset uncompress to CODE RAM
  3. execute mostly in CODE RAM space

Some low address FLASH would still necessary.

For example:

Current S132 occupies 0000 0000 -   0025 140  (151,872bytes)

SD 132 compresses (using gz) to   1A8B6   (108,726)  106KiB 

That would allow about 42KiB of FLASH  for the decompressor and the remaining could be used by the application.

Would this also provide for significantly faster operation of the SD?

PS Although I searched for various posts related to this topic I didn't happen to see this one: putting code in RAM.

  • Hi,

    This cannot work, for a couple of fundamental reasons:

    • The nRF52833 has 128 kB RAM, which is not enough to fit the S140 SoftDevice.
    • The SoftDevice is not built with position independent code, so it cannot run from any other address than what it has been built for.
  • Thank you.

    I meant just a portion of the SD. I gave the compressed size of the entire SD just to show that about a 30% reduction in compression could be expected.

    I can see that the effort involved in having Nordic provide several routines of the soft device would not be feasible because of the need to have PIC.

Related