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

How to get used RAM from softdevice.hex ?

Hi

Env: Linux, command line, arm-gcc, softdevice 7, sdk 6

I am having strange behavior when running BLE based program (in nrf51822 and it uses ECB encryption), and I suppose that it could be related with RAM  overflow, not sure.

Executing:

arm-none-eabi-size ./_build/ble_app.out
   text       data        bss        dec        hex    filename
  18768       1176       1292      21236       52f4    ./_build/ble_app.out

I see that APP Layer RAM usage is: 2.4KB, which seems to be a lot ...

Now I cant find the way to get RAM usage from s110_nrf51822_7.3.0_softdevice.hex  (as I dont have the .out) in order to find out it it reaches 4KB.

If I run:

arm-none-eabi-size ~/s110_nrf51822_7.3.0/s110_nrf51822_7.3.0_softdevice.hex
   text       data        bss        dec        hex    filename
      0      84596          0      84596      14a74    ...nrf51_sdk_v6_1_0_b2ec2e6/s110_nrf51822_7.3.0_softdevice.hex

It seems that the data size is wrong calculated, right?

Any help would be be appreciated

Alex

Related