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

How to determine available flash space?

Hi!

I have searched for this questoin, but not found anything useful. Probably I an not using a good search phrase.

How do I determine how much space is left on a nRF51 DK? I am using the Eclipse/gcc tolchain, and the linker reports something like:

   text	   data	    bss	    dec	   hex	filename
  123692	    420	  10836      134948	 20f24	_build/nrf51422_xxac_s130.out

The flash space seems to be 256kB, but I do not know how big the softdevice is.

Ideally, the Makefile should report that "You have XX octets of flash remaining for your application", like some IDEs do. How can the Makefile do that?

Dreaming on: Even better would be a grapf that is updated for each compilation. Then you could extrapolate and see when in the future the flash would be full. ;-)

regards, Elm

Parents Reply Children
No Data
Related