<?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>Adding a prebuilt littlefs image to merge.hex image</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59802/adding-a-prebuilt-littlefs-image-to-merge-hex-image</link><description>I am trying to use the littlefs fileystem in Zephyr to hold the configuration parameters and cloud identifier for each of our devices. It would be really nice to build the filesystem image on the host, and then combine the image into the hex file that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Apr 2020 16:38:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59802/adding-a-prebuilt-littlefs-image-to-merge-hex-image" /><item><title>RE: Adding a prebuilt littlefs image to merge.hex image</title><link>https://devzone.nordicsemi.com/thread/243737?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 16:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38cf7450-6280-41f8-bc6a-5797ed50c743</guid><dc:creator>DevinCallahan</dc:creator><description>&lt;p&gt;objcopy doesn&amp;#39;t quite do it.&amp;nbsp; I haven&amp;#39;t found a way to get the output ihex file to have its addresses offset to the location of the &amp;quot;storage&amp;quot; partition.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did find &amp;quot;pynrfjprog&amp;quot; however which has a &amp;quot;write&amp;quot; method which can take a byte array, so I have a simple python script that can write the files in for now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Adding a prebuilt littlefs image to merge.hex image</title><link>https://devzone.nordicsemi.com/thread/243394?ContentTypeID=1</link><pubDate>Fri, 03 Apr 2020 12:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e01c3fb6-a10a-4d11-800f-94bcd0b8e0d0</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]1. Does someone know of a good way to convert a binary file into a ihex file that starts at a specified address offset (thus solving my problem directly)[/quote]
&lt;p&gt;&amp;nbsp;I think you can use arm-none-eabi-objcopy which is part of the arm gcc installation. To convert from binary to ihex you should do something like this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-objcopy --input-target=binary --output-target=ihex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2. Does someone know of a tool I can use to just flash a binary file to an specified address (giving me at least some way to do this)[/quote]
&lt;p&gt;&amp;nbsp;You can just use nrfjprog with the memwr argument.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --memwr &amp;lt;addr&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>