<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to determine available flash space?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19107/how-to-determine-available-flash-space</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jan 2017 09:54:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19107/how-to-determine-available-flash-space" /><item><title>RE: How to determine available flash space?</title><link>https://devzone.nordicsemi.com/thread/73927?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 09:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e327c789-29f2-4890-a6a6-7f1a4c31e84e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The size of the SoftDevices are stated in their respective SoftDevice Specifications, e.g. the memory usage of the S130 v2.0 is stated &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.sds/dita/softdevices/s130/mem_usage/mem_resource_reqs.html?cp=3_7_2_0_13_0_0"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to determine available flash space?</title><link>https://devzone.nordicsemi.com/thread/73928?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 09:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c47879d-c540-4659-9cc1-3fd4ba30a647</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi Elm,&lt;/p&gt;
&lt;p&gt;If you make raw BIN output file (e.g. by &lt;code&gt;-O binary&lt;/code&gt; flag in GCC from ELF file) then you can simply print its size by &lt;code&gt;$(SIZE) -B --target=binary $(BIN)&lt;/code&gt; and that&amp;#39;s exact number of bytes which will be written in HEX on top of base address. Now your base address is typically given by end of SoftDevice so by placing this number into Makefile (or by loading it from some other config - e.g. LD file) you could get your &amp;quot;total&amp;quot; code size which is written into nRF5x NVM (flash). However if your app uses flash area for data storage you obviously never see this during compilation...&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>