<?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>Download and debug application using SES while bootloader present</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33879/download-and-debug-application-using-ses-while-bootloader-present</link><description>Hello! 
 
 I am currently developing an application for the nrf52832 using Segger Embedded Studio as my IDE. 
 The application is not utilizing any softdevice but I would like to do updates using ble dfu which depends on s132 softdevice. While the application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 May 2018 12:46:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33879/download-and-debug-application-using-ses-while-bootloader-present" /><item><title>RE: Download and debug application using SES while bootloader present</title><link>https://devzone.nordicsemi.com/thread/131022?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 12:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e97576b-be75-49ac-91f1-ac342c113e78</guid><dc:creator>FranzKnut</dc:creator><description>&lt;p&gt;Ah now I got what you meant.&lt;/p&gt;
&lt;p&gt;This is working for me, Thank you!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This leads me to another question: Is there a way to execute custom scripts while building in SES so I can automate the bootloader_setting creation?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download and debug application using SES while bootloader present</title><link>https://devzone.nordicsemi.com/thread/130968?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 09:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef2cce92-928a-4c3a-9472-6d90dc7311c4</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not very clear on why do you need to put the hex file to &amp;quot;additional loadfile&amp;quot; ?&lt;/p&gt;
&lt;p&gt;You&amp;nbsp;should be able to&amp;nbsp;debug without that. You just need to run nrfjprog&amp;nbsp; to program the merged bootloader+bootloader setting. After that you flash the application from SES.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that the bootloader setting have to be generated with the application hex you planing to use. So if you flashed the bootloader setting and then you modify the application, the CRC of the application image won&amp;#39;t match with what in the bootloader setting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You get the error &amp;quot;does not fit the target description&amp;quot; most likely because the UICR page is outside of the flash configuration for the chip. You may need to add the segment of the UICR into the flash_placement.xml , similar to what we have in our bootloader project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download and debug application using SES while bootloader present</title><link>https://devzone.nordicsemi.com/thread/130872?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 16:45:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:143ec38b-b678-4017-a409-32bb74953c46</guid><dc:creator>FranzKnut</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;When mergehex-ing the bootloader and the bootloader_setting.hex generated using nrfutil I can flash it on the device and run the application. Sadly when trying to flash the merged hexfile as additional Loadfile SES is reporting the following error: &amp;quot;The 0x10001014 - 0x1000101B load section does not fit the target description&amp;quot;.&lt;/p&gt;
&lt;p&gt;As I have stated above I am interested in using SES&amp;#39; integrated visual debug functionality.&lt;/p&gt;
&lt;p&gt;I am able to download the application using SES whithout specifying an Additional Loadfile but after this the application will not launch because the bootloader is not aware of its presence.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Download and debug application using SES while bootloader present</title><link>https://devzone.nordicsemi.com/thread/130277?ContentTypeID=1</link><pubDate>Mon, 30 Apr 2018 11:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bab5318-d7ca-48da-b580-e3f2117b6db5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Julian,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest you test the bootloader setting hex you generate using nrftuil separately, instead of adding it as&amp;nbsp;Additional Load File. Note that the hex file of the application have to&amp;nbsp;be the same hex that you used to generate the bootoader setting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also please test with a simple blinky example first.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can have a look at my guide &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;here&lt;/a&gt;&amp;nbsp;at appendix 1.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>