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

question regarding RAM block

I'm developing using a nrf51822. as a investigation of map file, It seems that use the only block0 ram region. Name Origin Length
RAM 0x20002000 x00002000 so,I suffer from ram overflow issue. so, I want to use both block0 and block1 for solving ram issue. could you explain how to use that?(hw side or sw side ) or,need sample code if you have it. or,If we need new stack library for this,how can i get new stack?

Parents
  • Hi Hjjeon,

    To clarify, when you use S110 softdevice, RAM region 0 is from address 0x20000000 to address 0x20001FFF and RAM region 1 is from 0x20002000 to 0x20003FFFF.

    When the S110 stack is active, RAM region 0 reserved for the stack and application can only use RAM region 1.

    You can find the memory resource map at section 9.1 in the S110 softdevice specification.

    So it's not possible for the application to have more than 8KB of RAM when the softdevice is active.

    However, you can have some more space for memory by reducing the size of heap area if you don't do dynamic memory allocation (malloc).

    You can configure the heap size in arm_startup_nrf51.s

    Please refer to this thread.

Reply
  • Hi Hjjeon,

    To clarify, when you use S110 softdevice, RAM region 0 is from address 0x20000000 to address 0x20001FFF and RAM region 1 is from 0x20002000 to 0x20003FFFF.

    When the S110 stack is active, RAM region 0 reserved for the stack and application can only use RAM region 1.

    You can find the memory resource map at section 9.1 in the S110 softdevice specification.

    So it's not possible for the application to have more than 8KB of RAM when the softdevice is active.

    However, you can have some more space for memory by reducing the size of heap area if you don't do dynamic memory allocation (malloc).

    You can configure the heap size in arm_startup_nrf51.s

    Please refer to this thread.

Children
No Data
Related