<?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>why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11180/why-the-hex-file-compiled-by-eclipse-is-different-from-compiled-by-keil</link><description>I install 
 
 gcc-arm-none-eabi-4_9-2015q3-20150921-win32 
 make-3.81 
 coreutils-5.3.0 
 
 and setup the PATH in windows
then i enter CMD mode make some command to make sure it works 
 
 
 set the toolchain path in makefile.windows and makefile</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jan 2016 03:58:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11180/why-the-hex-file-compiled-by-eclipse-is-different-from-compiled-by-keil" /><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41885?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 03:58:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e13f854-37c1-42ce-8993-74ff424f1d6f</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;yes ,my board is 51422 XXAC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41884?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 03:42:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3a63f41-7069-403d-bc75-6d184a179c4e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;What. Revision. Chip. Do. You. Have. On. Your. Test. Board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41883?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 03:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c92802-24e5-46ec-b1f7-a39e1ed93921</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;thx for ur response ,i try to use debug mode to find the problem ,but it show up something (i post in  above question ),how to solve it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41874?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 03:34:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cecce4a-6853-4d9d-b944-44629a9f3efe</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;you haven&amp;#39;t answered the main basic question here which is what chip revision do you ACTUALLY have on the board. if it&amp;#39;s not an XXAC, don&amp;#39;t use the XXAC linker file, use the XXAA or XXAB one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41882?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 12:46:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d0f4f84-eeed-48e4-bb47-ad957345659d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;if those two hex files have the SP in the right place, the lefthand one has the stack pointer at 0x20008000 and the right-hand one at 0x20000808. The lefthand one is consistent with the normal gcc 51422_xxac.ld file which bungs the stack at the end, so I&amp;#39;m guessing that&amp;#39;s the gcc one.&lt;/p&gt;
&lt;p&gt;So if the chip variant it&amp;#39;s running on isn&amp;#39;t an XXAC, that&amp;#39;s quite possibly the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41881?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 12:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50b32000-a823-4e08-8a62-2f3743fa18f0</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Examining the Memory Map  file should show if the code placement is wrong.&lt;/p&gt;
&lt;p&gt;Do you have the map for the Keil build?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41878?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 12:17:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9457eb56-27bc-4b4e-9b56-539cb2432811</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Random guess - you&amp;#39;re using the linker file for the XXAC version chip but actually have an XXAA or XXAB chip so it crashes on launch.&lt;/p&gt;
&lt;p&gt;And yes &amp;#39;really&amp;#39;, two compilers will produce radically different code from the same source. Two versions of gcc will produce different code from the same source, one version of gcc will produce two totally different binary files if even one option was changed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41877?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 12:14:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:702f8ff2-90f7-4fd0-8012-fc8f1a3b317f</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I asked about Warnings - not errors&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41876?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 12:07:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc704372-fe88-42c8-9402-db3b29d9aa46</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;there is no error after i built,it just like what i post above&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41880?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 11:47:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3c58d8e-4dfc-4d2e-88f5-b83498b5a617</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Do you receive any warnings in either of the builds?&lt;/p&gt;
&lt;p&gt;Again, you need to debug the code to see where it&amp;#39;s failing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41879?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 11:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9da3db26-5de7-44c3-80c8-55865b2f076f</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;really? if problem is not in hex file ,it may in where at the above step?
have u find that i miss or make mistake anything? if there is ,PLZ tell me .thx!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: why the HEX file compiled by Eclipse is different from compiled by keil ?</title><link>https://devzone.nordicsemi.com/thread/41875?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 10:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c321a02d-f645-4f86-9378-53adf688845c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You should &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; expect the hex files from different compilers to be identical.&lt;/p&gt;
&lt;p&gt;Different compilers &lt;strong&gt;&lt;em&gt;will&lt;/em&gt;&lt;/strong&gt; produce different results; this is natural - it is &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; a problem as such.&lt;/p&gt;
&lt;p&gt;If one works and the other doesn&amp;#39;t, you are going to have to do some &lt;strong&gt;debugging&lt;/strong&gt; to find where the problem is occurring...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>