<?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>flash app compiled with gcc using DFU with bootloader compiled with keil</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11086/flash-app-compiled-with-gcc-using-dfu-with-bootloader-compiled-with-keil</link><description>I compiled the bootloader and my app with keil arm and I can perform app flashing using DFU, then I compiled the app using gcc, then I can no longer flash using DFU. 
 is there any issue with flashing an app compiled using gcc with a bootloader compiled</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jan 2016 16:09:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11086/flash-app-compiled-with-gcc-using-dfu-with-bootloader-compiled-with-keil" /><item><title>RE: flash app compiled with gcc using DFU with bootloader compiled with keil</title><link>https://devzone.nordicsemi.com/thread/41483?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 16:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0dc3dc4-1289-4d64-be80-d42fd805ab47</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;yes I have 16KB, QFAA, i&amp;#39;ll try to compile the bootloader using gcc too, thanks for your answer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash app compiled with gcc using DFU with bootloader compiled with keil</title><link>https://devzone.nordicsemi.com/thread/41482?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 16:08:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357bd385-723c-491e-8495-73e70a20c9df</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;I edited the answer, because it is only true for 16KB RAM. I guess you have that (QFAA or QFAB)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash app compiled with gcc using DFU with bootloader compiled with keil</title><link>https://devzone.nordicsemi.com/thread/41484?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2016 11:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afbe32d3-ed5c-488f-b445-7a4a9d044634</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Flashing bootloader and application, one with GCC and one with Keil is not safe since the two compilers places the stack at different locations in RAM (GCC at the top of the RAM and Keil above the heap).&lt;/p&gt;
&lt;p&gt;The reason it does not work in this case is probably because bond sharing is stored at the top of the RAM if it is 16KB (more specific at address 0x20003F80), which is the same place as GCC places the stack. If this information is corrupted when the starting the DFU, the device will not connect automatically to the master and start the firmware transfer.&lt;/p&gt;
&lt;p&gt;Bottom line: Do not flash the bootloader and application with different compilers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>