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

Memory problems with s130v2:SDK12.3.0

Hi, I have changed the ble_app_uart_c example so that it can connect to multiple peripherals(at the moment 2 peripherals, the goal is 3 peripherals). It works fine, but as soon as I include the peer_manager code for getting the bonding option, the softdevice_enable has app_ram_base != ram_start. When I fixed the IRAM1 start to match app_ram_base and compile the code, the program flow does not come into main at all. It goes to memory 0xFFFF FFFE and stays there forever. I am using nRF51822-AA. How so I solve this? Thanks.

Parents
  • Hi endnode, thanks for the reply. My RAM region values are : IRAM1 : (start=) 0x20002F60; (size=)0x4FC0; IROM1 : (start=)0x1B000; (size=)0x25000; My memory consumption (as found in the .map file) is:

      Code (inc. data)   RO Data    RW Data    ZI Data      Debug   
    
     37344       3210        856        320       6408     613593   Grand Totals
     37344       3210        856         52       6408     613593   ELF Image Totals (compressed)
     37344       3210        856         52          0          0   ROM Totals
    

    ==============================================================================

    Total RO  Size (Code + RO Data)                38200 (  37.30kB)
    Total RW  Size (RW Data + ZI Data)              6728 (   6.57kB)
    Total ROM Size (Code + RO Data + RW Data)      38252 (  37.36kB)
    

    ==============================================================================

    As you can see RAM consumption is only around 6.5K.

Reply
  • Hi endnode, thanks for the reply. My RAM region values are : IRAM1 : (start=) 0x20002F60; (size=)0x4FC0; IROM1 : (start=)0x1B000; (size=)0x25000; My memory consumption (as found in the .map file) is:

      Code (inc. data)   RO Data    RW Data    ZI Data      Debug   
    
     37344       3210        856        320       6408     613593   Grand Totals
     37344       3210        856         52       6408     613593   ELF Image Totals (compressed)
     37344       3210        856         52          0          0   ROM Totals
    

    ==============================================================================

    Total RO  Size (Code + RO Data)                38200 (  37.30kB)
    Total RW  Size (RW Data + ZI Data)              6728 (   6.57kB)
    Total ROM Size (Code + RO Data + RW Data)      38252 (  37.36kB)
    

    ==============================================================================

    As you can see RAM consumption is only around 6.5K.

Children
No Data
Related