<?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>Is there any way to make hex file like setting.hex file which is automatically write my data in &amp;quot;APP DATA&amp;quot; section when i include the .hex file with my application.hex file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65412/is-there-any-way-to-make-hex-file-like-setting-hex-file-which-is-automatically-write-my-data-in-app-data-section-when-i-include-the-hex-file-with-my-application-hex-file</link><description>hello all, 
 i am using nRF52832 SoC in my project and my requirement is to write some configuration into internal flash when i flash the program using segger j link. 
 for better understanding i explain the steps which i want 
 1. i have one application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Sep 2020 11:31:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65412/is-there-any-way-to-make-hex-file-like-setting-hex-file-which-is-automatically-write-my-data-in-app-data-section-when-i-include-the-hex-file-with-my-application-hex-file" /><item><title>RE: Is there any way to make hex file like setting.hex file which is automatically write my data in "APP DATA" section when i include the .hex file with my application.hex file</title><link>https://devzone.nordicsemi.com/thread/267612?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 11:31:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19c5ebf8-e729-451f-84f1-4ab3e3903dcb</guid><dc:creator>Amit Kanade</dc:creator><description>&lt;p&gt;yes now it working as expected thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any way to make hex file like setting.hex file which is automatically write my data in "APP DATA" section when i include the .hex file with my application.hex file</title><link>https://devzone.nordicsemi.com/thread/267533?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2020 07:22:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89b02173-a9c2-40d6-8129-6c79951b1e9c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Try add keep=&amp;quot;yes&amp;quot; to the programsection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any way to make hex file like setting.hex file which is automatically write my data in "APP DATA" section when i include the .hex file with my application.hex file</title><link>https://devzone.nordicsemi.com/thread/267435?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 11:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7d79f56-cd67-43cd-9d5e-8b388cbf3759</guid><dc:creator>Amit Kanade</dc:creator><description>&lt;p&gt;hello kenneth&lt;/p&gt;
&lt;p&gt;i tried with same way but did not get the expected result&lt;/p&gt;
&lt;p&gt;i am using segger embedded studio so i write code something like:&lt;/p&gt;
&lt;p&gt;#define SERIAL_NUMBER ( 0x12 )&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; const uint32_t vpd_addr&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __attribute__((section(&amp;quot;.vpd_address&amp;quot;)))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __attribute__((used)) = SERIAL_NUMBER;&lt;/p&gt;
&lt;p&gt;also define section in flash_placement.xml like this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;MemorySegment name=&amp;quot;$(FLASH_NAME:FLASH)&amp;quot;&amp;gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;[...]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ProgramSection alignment=&amp;quot;4&amp;quot; load=&amp;quot;yes&amp;quot; name=&amp;quot;.vpd_address&amp;quot; start=&amp;quot;0x00074000&amp;quot; /&amp;gt;&lt;br /&gt;[...]&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt; &amp;lt;/MemorySegment&amp;gt;&lt;br /&gt;&lt;br /&gt;after this changes i debug the code and view the memory map but my value is not written on 0x74000 address&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any way to make hex file like setting.hex file which is automatically write my data in "APP DATA" section when i include the .hex file with my application.hex file</title><link>https://devzone.nordicsemi.com/thread/267284?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 14:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be9f1ca5-8566-4155-9667-4dbca2e691bd</guid><dc:creator>Amit Kanade</dc:creator><description>&lt;p&gt;thank you for the fast response on this. i will definitely use this solution but still i am curious to know that, we can&amp;#39;t make separate hex( which is having some data ) file&amp;nbsp; and directly flash into internal flash&amp;nbsp; .... right ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there any way to make hex file like setting.hex file which is automatically write my data in "APP DATA" section when i include the .hex file with my application.hex file</title><link>https://devzone.nordicsemi.com/thread/267255?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 13:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b9604c-1f9e-4340-bf90-2c0002b3f8d3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you considered using nrfjprog --memwr for this?&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ac100689162d440d92812b1dce413504/pastedimage1598878298442v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Alternatively compile a project with something like:&lt;br /&gt;const uint32_t&amp;nbsp; my_variable __attribute__((at(ABSOLUTE_ADDRESS))) __attribute__((used)) = value;&lt;br /&gt;const uint32_t UICR_ARRAY[4] __attribute__((at(0x10001080))) __attribute__((used)) =&amp;nbsp; {1, 2, 3, 4};&lt;/p&gt;
&lt;p&gt;Or follow this:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/28589/placing-data-at-a-specific-memory-address-with-segger-embedded-studio"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/28589/placing-data-at-a-specific-memory-address-with-segger-embedded-studio&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>