<?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>Eclipse compiled hex file smaller than included hex</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22843/eclipse-compiled-hex-file-smaller-than-included-hex</link><description>I&amp;#39;ve managed to overcome all the quirks in setting up Eclipse/gcc development with the nRF52 PDK (PCA10056), and I can build the sample projects just fine. Here&amp;#39;s my issue: If I compile and load the &amp;quot;blinky&amp;quot; example project, it runs perfectly. If I try</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Jun 2017 14:23:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22843/eclipse-compiled-hex-file-smaller-than-included-hex" /><item><title>RE: Eclipse compiled hex file smaller than included hex</title><link>https://devzone.nordicsemi.com/thread/89806?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 14:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b14b953-a5cc-49ea-a0dc-824108417916</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;It sounds logical when think about it now... so merging HEX with SD and then using drug&amp;amp;drop should work next time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse compiled hex file smaller than included hex</title><link>https://devzone.nordicsemi.com/thread/89811?ContentTypeID=1</link><pubDate>Fri, 16 Jun 2017 14:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:826f358a-b651-402f-87ba-3ae5f6fd4520</guid><dc:creator>zolotiyeruki</dc:creator><description>&lt;p&gt;It looks like using nRFgo Studio to program the application worked.  The drag-and-drop method must erase the entire flash when loading the new code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse compiled hex file smaller than included hex</title><link>https://devzone.nordicsemi.com/thread/89808?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 22:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bd72509-82f1-424e-ba4b-10b6300723d3</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;OK. Compilation looks good, I would just stick (for the beginning) to the compilation chain Nordic recommends in nRF5 SDK V13.0.0 release notes: &lt;code&gt;GCC ARM Embedded 4.9 2015q3&lt;/code&gt;. When it comes to verifying on PCA10058 bard:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You normally don&amp;#39;t need to hook any additional cable like &amp;quot;Serial to USB&amp;quot; adapter, it should go through SEGGER J-Link OB serial port emulation (companion chip on the board which handles USB connection to PC host). All examples are using header files which should automatically use proper PINs to make this work. On PC side you should see J-Link COM port.&lt;/li&gt;
&lt;li&gt;I never use this &amp;quot;drug and drop&amp;quot; programming method because I simply cannot control the process;) Setting up proper programming routine in &lt;code&gt;nrfjprog&lt;/code&gt; (part of NRFTOOLS bundle) or nRFgo Studio (or anything else) should help. Then you can be sure that nRF52 chip is erased and programmed with both SD + APP HEX files.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse compiled hex file smaller than included hex</title><link>https://devzone.nordicsemi.com/thread/89807?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 22:09:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dac61b1a-74d6-4e18-a002-cd6b4840461f</guid><dc:creator>zolotiyeruki</dc:creator><description>&lt;p&gt;Here&amp;#39;s the console output: &lt;a href="http://zolotiyeruki.com/uart_compile_log.txt"&gt;uart_compile_log&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I added a bunch of statements like this after various stages of the initialization in main()&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;printf(&amp;quot;\r\nUART Start!\r\n&amp;quot;);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When I copied the .hex file to the JLINK drive, rather than the file disappearing like it often does, the .hex file stays there.  I also hooked up a serial adapter to the PDK, and saw nothing when I copied the file over.  When I do it with the pre-compiled version, I see the &amp;quot;UART Start&amp;quot; appear, so I know it&amp;#39;s all hooked up correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse compiled hex file smaller than included hex</title><link>https://devzone.nordicsemi.com/thread/89809?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 21:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5af95feb-9620-454e-b1d3-51bd46ccb963</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Yes, console output. Alternatively build it with UART debug print outs, run some serial terminal (e.g. PuTTY) nd verify if FW boots and if so where it hangs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse compiled hex file smaller than included hex</title><link>https://devzone.nordicsemi.com/thread/89810?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 21:33:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3f19dec-d301-4085-a794-ca5ac6b12a0b</guid><dc:creator>zolotiyeruki</dc:creator><description>&lt;p&gt;Do you mean the output in Eclipse&amp;#39;s Console when I build the project, or some other sort of ourput?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse compiled hex file smaller than included hex</title><link>https://devzone.nordicsemi.com/thread/89805?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 20:54:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a1b2a86-210d-4738-b574-c3e38f0405a3</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;First of all the HEX files supplied with SDK are already merged with Soft Device (where applicable), you can easily verify that by comparing content with any tool like Kdiff3. Then even if you strip SD part and compare just &amp;quot;APP&amp;quot; you will most probably arrive to different content and size because Nordic compile by default with Keil or IAR and you are using GCC. But that should not be a big problem (and if you like to start with 100% binary compatible output - as I do - you will need to use different compilation chain - which I don&amp;#39;t like as well, GCC is great).&lt;/p&gt;
&lt;p&gt;The fact that your FW is not working is probably caused by some linking/include error, e.g. not setting RAM and FLASH boundaries properly in LD script or so. If you show us more from GCC output when you build the thing we might give you more hints.&lt;/p&gt;
&lt;p&gt;Cheers Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>