<?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>nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82565/nrf52805-secure-bootloader-with-iar-embedded-workbench</link><description>Hi, 
 I am using s112_nrf52_7.2.0_softdevice with nRF5_SDK_17.1.0 and iar embedded workbench. I can flash and run the application without any problem but when i try to program secure_bootloader_ble_s112_pca10040e or secure_bootloader_ble_s112_pca10040e_debug</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Dec 2021 17:16:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82565/nrf52805-secure-bootloader-with-iar-embedded-workbench" /><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/344007?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 17:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a24ab31e-13b6-43b6-81eb-12a9adac4c9e</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;I found the problem, I had old version of&amp;nbsp; micro-ecc lib, I installed and build the latest one, every thing works just fine. Thank you Sigurd.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/343881?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 12:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dba069b5-84b2-489e-90fd-f1473d3ef39a</guid><dc:creator>Sigurd</dc:creator><description>[quote user="nahro"]Have generated it with IAR 8?&amp;nbsp;[/quote]
&lt;p&gt;Yes.&lt;/p&gt;
[quote user="nahro"]Can you attach the IAR project? if you&amp;nbsp;&lt;span&gt;generated it with IAR.&lt;/span&gt;[/quote]
&lt;p&gt;I just used the IAR project found in folder: \nRF5_SDK_17.1.0_ddde560\examples\dfu\secure_bootloader&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/4300.pastedimage1639656578246v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/343864?ContentTypeID=1</link><pubDate>Thu, 16 Dec 2021 11:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de4f9a00-5e27-45f6-a654-ea299d579561</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Your DFU works fine and advertising, but never starts the application. Have generated it with IAR 8?&amp;nbsp; app adress is&amp;nbsp; 0x19000 to 0x28000. Can you attach the IAR project? if you&amp;nbsp;&lt;span&gt;generated it with IAR.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/343362?ContentTypeID=1</link><pubDate>Tue, 14 Dec 2021 10:30:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f32908c-cd70-45b0-bcae-e9dd0729e50d</guid><dc:creator>Sigurd</dc:creator><description>[quote user="nahro"]Can you send me a hex bootloader to test it?[/quote]
&lt;p&gt;Here you go:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/test_5F00_hex.zip"&gt;devzone.nordicsemi.com/.../test_5F00_hex.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I also set this in sdk_config.h so that it works on boards without LF crystal:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_SDH_CLOCK_LF_SRC 0
NRF_SDH_CLOCK_LF_RC_CTIV 16
NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
NRF_SDH_CLOCK_LF_ACCURACY 1
&lt;/pre&gt;&lt;/p&gt;
[quote user="nahro"]I want to use&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_GPREGRET.[/quote]
&lt;p&gt;This is the default behavior (NRF_BL_DFU_ENTER_METHOD_GPREGRET is set to 1 in sdk_config.h), you don&amp;#39;t need to modify the source code for this(looks like you have done this looking at the screenshot you posted.)&lt;/p&gt;
&lt;p&gt;PS: You should remove&amp;nbsp;DEVELOP_IN_NRF52832 and NRFX_COREDEP_DELAY_US_LOOP_CYCLES defines when testing on a nRF52805 device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/343072?ContentTypeID=1</link><pubDate>Mon, 13 Dec 2021 08:47:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b324ffdf-db84-4cc5-9542-b7a3db9f0458</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;No, I get the&amp;nbsp;&lt;span&gt;same hardfault. Can you send me a hex bootloader to test it? I want to use&amp;nbsp;NRF_BL_DFU_ENTER_METHOD_GPREGRET.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/342979?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 16:00:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a8bece9-eb58-4352-ab07-a59a3622a630</guid><dc:creator>Sigurd</dc:creator><description>[quote user="nahro"]I flashed the application, but its geting the same hardfault as well, so i have to erase the chip and reprogram softdevice and the app again.[/quote]
&lt;p&gt;If you erase the chip, and program SoftDevice and Bootloader, does the bootloader start as normal then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/342882?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 10:33:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77bec502-9732-457d-9835-e7a65e7ad886</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;I already have the latest MDK, and I used crypto libs with iar 8 before but with nrf52840 and I fixed these problems, and yes I set the nrf52805.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1639131880856v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;The problem is i am not geting anywhere in the bootloader its not even coming to the main. when I program the bootloadrer and get the &lt;span&gt;harfault&amp;nbsp;, I flashed the application, but its geting the same hardfault as well, so i have to erase the chip and reprogram softdevice and the app again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1639132490109v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/342865?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 09:34:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e5fc155-e967-4356-a33f-c9475b5ddbf5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you select nRF52805 in the General Options?&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1639128737546v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Also&amp;nbsp;note this from the SDK release notes:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*****
Note for IAR 8 users:

When using IAR 8, you must apply the following workaround in the MDK:

- Apply a patch to modules/nrfx/mdk/compiler_abstraction.h at line 140
 (fix the &amp;#39;__ALIGN()&amp;#39; macro definition): use the argument &amp;#39;n&amp;#39; in the macro expansion instead of &amp;#39;x&amp;#39;.

-------------------

Libraries for IAR 8 require wchar_t to be of size 32 bits while IAR 7 requires 16 bits.
  
To run a project using IAR 8, follow these instructions:
 1. Open the IAR project in IAR 8. The IAR workbench will automatically generate an IAR 8 compatible project file.
 2. If the project contains one of the precompiled libraries listed below, replace it
    with the IAR 8 compatible alternative (there are no projects targeting nRF51 in this SDK).
 3. Save the project.
 4. When building the project, you might get the warning: &amp;quot;The header file &amp;#39;cmsis_iar.h&amp;#39; is obsolete and should not be used. [...]&amp;quot;.
    - The problem is described in DevZone post: https://devzone.nordicsemi.com/f/nordic-q-a/31123/iar-ewarm-8-22-1-complains-about-cmsis_iar-h
      The solution is to remove all occurrences of #include &amp;lt;cmsis_iar.h&amp;gt;.
     
The affected libraries are:
 - micro-ecc crypto:
    - IAR7: Includes library located in the folder named “…_iar\…”.
    - IAR8: Switch to using the library from the folder named “…_armgcc\…”.
 - nrf_cc310, nrf_cc310_bl, and nrf_oberon:
    - IAR7: Link to a library where “short_wchar” is part of the folder name.
    - IAR8: Link to a library without “short_wchar” in the folder name.
 - Gazell, NFC Tag, and 802.15.4:
    - IAR7: Includes the library where the file name ends with “_iar”.
    - IAR8: Switch to using the library with similar file name that ends with “_gcc”.
*****&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/342837?ContentTypeID=1</link><pubDate>Fri, 10 Dec 2021 08:26:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e9af619-7b5a-4882-8b35-a6ce5c6d22c4</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Still the same&amp;nbsp;&lt;span&gt;harfault exception.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/342780?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 16:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c1ff95c-abee-48ee-b959-95c7767bedc5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Could you try this address instead,&amp;nbsp;0x27fff&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1639069118567v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/342708?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 12:34:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ca88abb-1bf3-4853-bcfd-d39cb2cd0d11</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Yes, I followed the link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52805 Secure bootloader with iar embedded workbench.</title><link>https://devzone.nordicsemi.com/thread/342702?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 12:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:581b38aa-7e58-4622-9d27-421e06039a09</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Did you patch the SDK?&lt;/p&gt;
&lt;p&gt;See this post:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/developing-for-the-nrf52805-with-nrf5-sdk"&gt;https://devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/developing-for-the-nrf52805-with-nrf5-sdk&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>