<?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>keil erase softdevice hex when doing a clean build</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33291/keil-erase-softdevice-hex-when-doing-a-clean-build</link><description>Hi, 
 
 For some reason when i do &amp;quot;project -&amp;gt; clean target&amp;quot; Keil deletes the softdevice Hex file in addition to the project compiled files. 
 Is that the normal behavior? 
 If so, is there a way to flash the SD from Keil (keep it in the project) but avoid</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Apr 2018 08:03:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33291/keil-erase-softdevice-hex-when-doing-a-clean-build" /><item><title>RE: keil erase softdevice hex when doing a clean build</title><link>https://devzone.nordicsemi.com/thread/129482?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2018 08:03:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f70044-c0b1-4825-a6ad-c6dbe3507390</guid><dc:creator>danny habot</dc:creator><description>&lt;p&gt;Found a workaround so i thought i should share.&lt;/p&gt;
&lt;p&gt;I changed the HEX file to &amp;quot;read only&amp;quot; in the file properties and it isn&amp;#39;t being deleted anymore.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks anyway &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Danny&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keil erase softdevice hex when doing a clean build</title><link>https://devzone.nordicsemi.com/thread/128492?ContentTypeID=1</link><pubDate>Mon, 16 Apr 2018 13:39:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39857d05-f741-4669-b183-58ff54620e41</guid><dc:creator>danny habot</dc:creator><description>&lt;p&gt;Hi Aryan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand why wouldn&amp;#39;t it delete as it is a hex file as part of the project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I use MDK version 5.25 which is newer and i don&amp;#39;t think i should downgrade. &lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6138.Capture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;I reached out to Keil support however they think like me that it is not a Keil bug. Their response was: &amp;quot;&lt;span&gt;I&amp;#39;m not sure what do you mean by &amp;quot;soft device&amp;quot;. If your hex file is stored in MDK project folder, it will be deleted by choosing &amp;quot;project -&amp;gt; clean targets&amp;quot;&amp;quot;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I know i am new to Keil and maybe i don&amp;#39;t explain myself so can you please assist me regarding what i should tell Keil support that will convince them that it is a Keil issue and why shouldn&amp;#39;t the softdevice HEX file get deleted when i call &amp;quot;clean targets&amp;quot;?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keil erase softdevice hex when doing a clean build</title><link>https://devzone.nordicsemi.com/thread/128116?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 15:30:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7de5b8a-fab4-4f69-8ede-d2cd0f8baec4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I do not know what the difference here is.&lt;/p&gt;
&lt;p&gt;No I cannot reproduce it here no matter what I try.&lt;/p&gt;
&lt;p&gt;My compiler details&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1523546795308v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Anyways there is workaround for this.(probably not so good)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;You can select Projects-&amp;gt;Batch Build -&amp;gt;check only nrf52832-&amp;gt;uncheck_flash target-&amp;gt;click clean&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I still think this is very very keil specific issue and not Nordic issue. But let me know if I can help you more.&lt;/p&gt;
&lt;p&gt;You might want to match your compiler to mine and check if it still the same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keil erase softdevice hex when doing a clean build</title><link>https://devzone.nordicsemi.com/thread/128094?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 13:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0b9b3e8-1ab5-42bf-b4e8-17d36146ee27</guid><dc:creator>danny habot</dc:creator><description>&lt;p&gt;Aryan,&lt;/p&gt;
&lt;p&gt;This is very weird.. i ask my colleagues to try and it deletes the hex file for them as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have just started working with Keil with the Nordic SDK so i want to solve this before getting to the big stuff...&lt;/p&gt;
&lt;p&gt;Just to verify that it&amp;#39;s a bug, i recorded what happen to me. please let me know if we do the same actions:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Recording-_2300_1.mp4"&gt;devzone.nordicsemi.com/.../Recording-_2300_1.mp4&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keil erase softdevice hex when doing a clean build</title><link>https://devzone.nordicsemi.com/thread/128004?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 09:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47480b89-720a-4ef0-ab14-d5c61fd28e41</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Default example from SDK seems like working OK. Not deleting any hex files.&lt;/p&gt;
&lt;p&gt;checked in project&amp;nbsp;\nRF5_SDK_15.0.0_a53641a\examples\dfu\secure_bootloader\pca10040_ble\arm5_no_packs&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/6175.Capture.PNG" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keil erase softdevice hex when doing a clean build</title><link>https://devzone.nordicsemi.com/thread/127954?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 06:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c097c637-07b9-4e3b-95e4-a66d629abab4</guid><dc:creator>danny habot</dc:creator><description>&lt;p&gt;Hi Aryan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It does delete it from there.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This is the original project without any changes...&lt;/p&gt;
&lt;p&gt;When i do &amp;quot;clean targets&amp;quot; i get the following output&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0211.Capture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;after that the hex is deleted&amp;nbsp; and i need to restore it manually..&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/2870.Capture1.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Can you please try to do it with the &amp;quot;BLE Secure DFU Bootloader&amp;quot;&amp;nbsp; example and see if it happens?&lt;/p&gt;
&lt;p&gt;thanks &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: keil erase softdevice hex when doing a clean build</title><link>https://devzone.nordicsemi.com/thread/127933?ContentTypeID=1</link><pubDate>Thu, 12 Apr 2018 05:42:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f25b3ec-f99c-4372-bb0f-f5bf1cce191e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;is it deleting the softdevice hex file from the SDK\components\softdevice\S1xx\hex folder?&lt;/p&gt;
&lt;p&gt;I tried it and it is not doing that for me. Did you add more user commands to the keil project?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>