This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

nRF51822_xxAC, split RAM into 2 regions

Hi

I'm doing some S/W based on nRF51822_xxAC. I want to split RAM into 2 regions, as following:

+-------------+ 0x20008000
|__ __ _ __ |
|APP ZONE2 |
+-------------+ 0x20004000
|
__ _ _ _ _ |
| STACK |stack size=0x1000
|
_ __ _ __ __|
| HEAP |heap size=0
+-------------+
|APP ZONE1 |
+-------------+0x20002000
| S110 8.0.0 |
+-------------+0x20000000

Please see if the correct? Safe for stack overflow or hardhalt?

Parents
  • Hi Zhiqun,

    there are no safety mechanisms in our SoftDevices/SKDs so how "safe" the configuration is against stack overflow will depend on how much RAM your application uses and how often the SoftDevice is invoked. Remember that the SoftDevice and the application shares the stack.

    Are you using Keil or GCC to compile your application?

    Is there a specific reason to why you need to split the RAM into two application sections?

    Bjørn

  • Are you using the S110 v8.0.0 SoftDevice? If so, then I think the IROM1 start address should be 0x00018000 and not 0x00020100. The IRAM2 section is the one for factory settings, since its only 256bytes right?

Reply Children
No Data
Related