<?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>How to upload application without erasing bootloader data? (with segger embedded studio)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116067/how-to-upload-application-without-erasing-bootloader-data-with-segger-embedded-studio</link><description>Hello everyone, 
 
 I&amp;#39;m trying to use the buttonless dfu functionality on nRF52 DK. However, I can&amp;#39;t seem to test the functionality when there is no bootloader flashed, but if I do flash the bootloader, when I flash my application Segger Embedded Studio</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Nov 2024 09:14:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116067/how-to-upload-application-without-erasing-bootloader-data-with-segger-embedded-studio" /><item><title>RE: How to upload application without erasing bootloader data? (with segger embedded studio)</title><link>https://devzone.nordicsemi.com/thread/509824?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 09:14:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8a06308-3e6f-4688-9509-a0284ff5d7f0</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is not something we support directly, and you would have to generate the bootlaoder settings page as well (unless you have modified the bootloader to skip validation during developlment). I expect you can do it with a&amp;nbsp;Post-Build Command in Segger Embedded studio though, if that runs a script you write that generates bootloader settings, and merge the bootloader and settings page. If you also add the bootoader as an additional load hex file in the same way as the SoftDevice hex file is added to example proejcts, I expect that would work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to upload application without erasing bootloader data? (with segger embedded studio)</title><link>https://devzone.nordicsemi.com/thread/509725?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2024 17:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14241a15-dfb3-4515-bae1-34b20f21833b</guid><dc:creator>julian24</dc:creator><description>&lt;p&gt;You&amp;#39;re really helping me out here. I have one last question, do you happen to know if there&amp;#39;s any way to program the bootloader merged with my app using Segger Embedded Studio (yes, it&amp;#39;s important to do it on ses)?&lt;br /&gt;&lt;br /&gt;thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to upload application without erasing bootloader data? (with segger embedded studio)</title><link>https://devzone.nordicsemi.com/thread/509366?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 07:55:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:309c5e27-ff61-48b9-af70-1e4fa2d83def</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I see. The AP protect. mecahnism is enabled by deafult, unless disabled both in the UICR and by firmware. As you are using nRF5 SDK&amp;nbsp;v17.1.0 this will disable AP Protect automatically in firmware, but only if you also write to the UICR (the simplest way to do this is to use an up to date nRF Command Line Tools, and call nrfjprog --recover before you program the device, and make sure you don&amp;#39;t do an erase all after that (which will erase the UICR again). See &lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf52832/page/dif.html#d913e201"&gt;Access port protection controlled by hardware and software&lt;/a&gt;&amp;nbsp;for more information about this mecahnism.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to upload application without erasing bootloader data? (with segger embedded studio)</title><link>https://devzone.nordicsemi.com/thread/509312?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 17:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:346f78d8-6220-491b-89f3-53423de491b6</guid><dc:creator>julian24</dc:creator><description>&lt;p&gt;when i try to download my code into the 52DK, a pop-up dialog says the device is secured, and its flash needs to be erased. when i do this, there&amp;#39;s no bootloader left in my code.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730913323359v1.png" alt=" " /&gt;&lt;/p&gt;
[quote userid="7377" url="~/f/nordic-q-a/116067/how-to-upload-application-without-erasing-bootloader-data-with-segger-embedded-studio/509119"]Are you sure that is what happens?[/quote]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to upload application without erasing bootloader data? (with segger embedded studio)</title><link>https://devzone.nordicsemi.com/thread/509119?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 13:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a65a82bb-8dc7-449e-8639-e47dd6834696</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I can&amp;#39;t seem to test the functionality when there is no bootloader flashed,[/quote]
&lt;p&gt;Yes, that is expected. Refering to the buttonless DFU template application, the call to&amp;nbsp;ble_dfu_buttonless_async_svci_init() will fail if the booloader is missing. If you comment it out, you should be able to test your application without a bootloader (except for the buttonless DFU feature of course).&lt;/p&gt;
[quote user=""]but if I do flash the bootloader, when I flash my application Segger Embedded Studio erases previous memory data.[/quote]
&lt;p&gt;As long as the application and bootloader does not overlap (which they cannot do), programming one should not erase the other. Are you sure that is what happens? If so, can you make sure you don&amp;#39;t do a recover or erase all operation when you program the other? That said, testing an application with a bootloaer can be a bit of a hazzle, as the bootlaoder will validate the application and only start a valid application. So whenver you progrem an application, you also need to generate and program the &lt;a href="https://docs.nordicsemi.com/bundle/nrfutil/page/guides-nrf5sdk/generating_bootloader_settings.html"&gt;bootloader settings page&lt;/a&gt;&amp;nbsp;(alternatively you can modify the bootloader to start the application without checking if it is valid).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>