<?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>Loading data into Application Data block during programming</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38030/loading-data-into-application-data-block-during-programming</link><description>The device I am building requires a quantity of data to be loaded into the application data block so that it can be accessed at run time. The data is effectively calibration data and may change with each unit. I therefore don&amp;#39;t want to hard-code it into</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 12 Sep 2018 06:43:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38030/loading-data-into-application-data-block-during-programming" /><item><title>RE: Loading data into Application Data block during programming</title><link>https://devzone.nordicsemi.com/thread/148313?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 06:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:351d7312-e469-4e4b-8fe1-2f50910e5bd5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you have a binary file then you might want to use J-Link Commander instead, as that will let you take a binary blob and specify which address you want to write it to using the &amp;quot;loadbin&amp;quot; command. I am sure there are other tools from other vendors as well, but at least that is one way to do it. (Remember that you still need to reserve the flash space so that it is not overwritten by either the bootloader during DFU or FDS as described in my previous post.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loading data into Application Data block during programming</title><link>https://devzone.nordicsemi.com/thread/148252?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 15:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f1da2a0-8db5-41f6-8429-06920343b401</guid><dc:creator>bgarrood</dc:creator><description>&lt;p&gt;hello.&amp;nbsp; Thank you for your reply.&amp;nbsp; &amp;nbsp;I need to program quite a large block of data, about 4kb, into the application data block of the flash memory.&amp;nbsp; &amp;quot;nrfjprog --memwr&amp;quot; programs one byte at a time as far as I can tell.&amp;nbsp; Is there a way to program a whole binary file into flash memory?&amp;nbsp; Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Loading data into Application Data block during programming</title><link>https://devzone.nordicsemi.com/thread/146656?ContentTypeID=1</link><pubDate>Fri, 31 Aug 2018 08:12:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb487372-36af-40ba-b577-69b01b5358e3</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Barney,&lt;/p&gt;
&lt;p&gt;You have several options to code data into the flash during production. You can for example write the data using &amp;quot;nrfjprog --memwr&amp;quot;. The only thing you need to make sure is that the flash page you write to&amp;nbsp;is free. So no other hex files should be programmed there, and it should not be used for other flash storage (such as FDS which is for instance used by the Peer manager to store BLE bonding information). If you use a bootloader you need to&amp;nbsp;set&amp;nbsp;DFU_APP_DATA_RESERVED in nrf_dfu_types.h accordingly, so that the bootloader does not overwrite your data during a DFU upgrade.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>