<?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 and debug application with signed bootloader in IAR or how to flash Bootloader Settings before debugging</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26805/flash-and-debug-application-with-signed-bootloader-in-iar-or-how-to-flash-bootloader-settings-before-debugging</link><description>I have a project which needs to be built in IAR, but uses the signed bootloader. I understand, that if I want to flash and debug the application from within IAR, I need to also write the Bootloader Settings page, otherwise the application won&amp;#39;t be loaded</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Nov 2017 10:14:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26805/flash-and-debug-application-with-signed-bootloader-in-iar-or-how-to-flash-bootloader-settings-before-debugging" /><item><title>RE: Flash and debug application with signed bootloader in IAR or how to flash Bootloader Settings before debugging</title><link>https://devzone.nordicsemi.com/thread/105352?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 10:14:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98ae6b6b-4564-4985-becc-f206a110a4b5</guid><dc:creator>m.wagner</dc:creator><description>&lt;p&gt;Thanks, that would have been an option. In the meantime I was able to solve the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug application with signed bootloader in IAR or how to flash Bootloader Settings before debugging</title><link>https://devzone.nordicsemi.com/thread/105354?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 10:12:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82a5e8df-f501-4a7f-9889-739da330006e</guid><dc:creator>m.wagner</dc:creator><description>&lt;p&gt;I managed to solve the issue using the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Converted the .hex-file generated by nrfutil to a raw binary file.&lt;/li&gt;
&lt;li&gt;Created an additional IAR-project for the bootloader settings, which is configured according to the &lt;a href="https://www.iar.com/support/tech-notes/general/programming-binary-files-into-flash-within-ewarm/"&gt;IAR Technical Note 21367&lt;/a&gt;, with linker addresses adjusted to match the bootloader settings page and including the binary generated in 1. This is actually configured to be done in the pre-build of this IAR-project.&lt;/li&gt;
&lt;li&gt;In the post-build of the actual application IAR-project, generate the bootloader settings .hex-file using nRF-util and then invoke the IAR build of the bootloader settings IAR-project.&lt;/li&gt;
&lt;li&gt;In the project settings of the application IAR project, go to &amp;quot;Debugger&amp;quot; &amp;gt; &amp;quot;Images&amp;quot; and tick &amp;quot;Download extra image&amp;quot; and select the .out-file generated in the bootloader settings IAR-project and set the offset to the location of the Bootloader-settings page.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug application with signed bootloader in IAR or how to flash Bootloader Settings before debugging</title><link>https://devzone.nordicsemi.com/thread/105353?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 15:41:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90c5a84f-25d8-4307-8f56-1da44453364f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I see. I&amp;#39;m not aware of a way to run a script or to combine hex with IAR, don&amp;#39;t have much experience with this compiler. But I am thinking that you can simply disable CRC check in the bootloader in your development. And update the bootloader CRC check back when you make the release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug application with signed bootloader in IAR or how to flash Bootloader Settings before debugging</title><link>https://devzone.nordicsemi.com/thread/105351?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 13:24:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d816b08-315c-4ea3-a6d8-7a31d3cb43a1</guid><dc:creator>m.wagner</dc:creator><description>&lt;p&gt;Hi Hung Bui,
Thanks for your suggestions. I would like to get this to run from within IAR upon application download to make the development/debug process more straight forward. From my understanding, when downloading the application IAR does not load any .hex files but just its own &amp;quot;.out&amp;quot;-binary format, so merging the two hex-files is not that useful in my use case.
Of course, technically it would be possible to flash the bootloader settings manually, but it&amp;#39;s a bit inconvenient, especially when the application is often flashed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash and debug application with signed bootloader in IAR or how to flash Bootloader Settings before debugging</title><link>https://devzone.nordicsemi.com/thread/105350?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 16:06:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e24140-8569-4bc7-856c-4ad2a9cb7e9e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wagner,&lt;/p&gt;
&lt;p&gt;Can you just flash settings.hex manually using nrfjprog, or merge the settings.hex with the bootloader and the application hex (using merge hex) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>