<?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 an application greater than 250KBytes can upload into nrf51822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42934/how-an-application-greater-than-250kbytes-can-upload-into-nrf51822</link><description>Hi, 
 I have an application of memory size 380Kbytes, I could able to upload application into a device which has nr51822. After checking the datasheet of nrf51822 I noticed it has only 250kB of memory and 16kB of RAM. How can this be possible ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jan 2019 16:18:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42934/how-an-application-greater-than-250kbytes-can-upload-into-nrf51822" /><item><title>RE: How an application greater than 250KBytes can upload into nrf51822?</title><link>https://devzone.nordicsemi.com/thread/167725?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 16:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10fcafd0-d777-4c17-abab-fb3e06a7063e</guid><dc:creator>ashokraj</dc:creator><description>&lt;p&gt;Hi Sigurd,&amp;nbsp; I am fledging embedded systems engineer. I have not compiled the program. I have got from senior engineer and I have uploaded on to product. I have simply noticed it from computer properties.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How an application greater than 250KBytes can upload into nrf51822?</title><link>https://devzone.nordicsemi.com/thread/167618?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 11:28:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ae7967-1f51-4bc5-982e-a1f9c3e8ef2c</guid><dc:creator>awneil</dc:creator><description>[quote userid="8189" url="~/f/nordic-q-a/42934/how-an-application-greater-than-250kbytes-can-upload-into-nrf51822/167516"]If you load past physical FLASH, it will wrap around[/quote]
&lt;p&gt;No, that&amp;#39;s not true.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How an application greater than 250KBytes can upload into nrf51822?</title><link>https://devzone.nordicsemi.com/thread/167617?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 11:26:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e218010f-7576-411b-a245-720e4d5b4c91</guid><dc:creator>awneil</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/42934/how-an-application-greater-than-250kbytes-can-upload-into-nrf51822/167591"]the size of the .hex is not the same as the&amp;nbsp;flash usage[/quote]
&lt;p&gt;Indeed - this is a common beginner&amp;#39;s misconception!&lt;/p&gt;
&lt;p&gt;In fact, the size of a hex file is over &lt;em&gt;&lt;strong&gt;twice&lt;/strong&gt; &lt;/em&gt;the size of the actual binary code that it represents!&lt;/p&gt;
&lt;p&gt;This has nothing specifically to do with Nordic.&lt;/p&gt;
&lt;p&gt;See, for example,&amp;nbsp;&lt;a href="http://www.keil.com/support/docs/3250.htm"&gt;http://www.keil.com/support/docs/3250.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Intel_HEX"&gt;https://en.wikipedia.org/wiki/Intel_HEX&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How an application greater than 250KBytes can upload into nrf51822?</title><link>https://devzone.nordicsemi.com/thread/167591?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 10:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0436bdf-eafb-43fd-99bc-f4edcfa02e7c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="68734" url="~/f/nordic-q-a/42934/how-an-application-greater-than-250kbytes-can-upload-into-nrf51822"]I have an application of memory size 380Kbytes[/quote]
&lt;p&gt;How are you&amp;nbsp;measuring this? Note that the size of the .hex is not the same as the&amp;nbsp;flash usage.&amp;nbsp;The total flash usage is&amp;nbsp;Code + RO-data + RW-data, these values are typically displayed after you have compiled your &lt;span&gt;application.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How an application greater than 250KBytes can upload into nrf51822?</title><link>https://devzone.nordicsemi.com/thread/167516?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 03:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c6762e2-a174-45a8-a120-850dbdc6dbb2</guid><dc:creator>natersoz</dc:creator><description>&lt;p&gt;Check your linker options. In gcc-arm it is a .ld file:&lt;/p&gt;
&lt;p&gt;MEMORY&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLASH (rx) : ORIGIN =&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x26000, LENGTH = 0x5a000&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM&amp;nbsp; (rwx) : ORIGIN = 0x20000000 + __SOFTDEVICE_DATA_SIZE, LENGTH = 64K - __SOFTDEVICE_DATA_SIZE&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Something like that. You can upload anything you want if the linker file says it will fit.&lt;/p&gt;
&lt;p&gt;That does not necessarily match reality. If you load past physical FLASH, it will wrap around. Nothing will actually work.&lt;/p&gt;
&lt;p&gt;Make sure your linker file/settings match physical reality.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>