<?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>Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19377/flashing-bootloader-application-via-j-link</link><description>Hi,
I am using SDK 11 , nRF52 DK . IAR 7.5
In current implementation I am flashing a sofdevice s132 and the bootloader by the nrfjprog.exe but if I am flashing the app this way it is not starts. The board stays in Bootloader . If I am flashing the app</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Jun 2017 07:23:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19377/flashing-bootloader-application-via-j-link" /><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75182?ContentTypeID=1</link><pubDate>Thu, 22 Jun 2017 07:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2901bc5c-dcf4-457f-bae1-41a80a4cf332</guid><dc:creator>Taku</dc:creator><description>&lt;p&gt;It is a very old question, but I will reply as it may be useful.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#elif defined ( __ICCARM__ )

const uint8_t m_boot_settings[CODE_PAGE_SIZE] @ BOOTLOADER_SETTINGS_ADDRESS = {BANK_VALID_APP};                                                    
__root    const uint32_t m_uicr_bootloader_start_address @ NRF_UICR_BOOT_START_ADDRESS = BOOTLOADER_REGION_START;                   

#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This seems to be solved.&lt;/p&gt;
&lt;p&gt;thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75178?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 11:36:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f302399-1634-40dc-b792-af587c1ebbc9</guid><dc:creator>AnnaSBX</dc:creator><description>&lt;p&gt;C:\Users\annal&amp;gt;nrfjprog -f nr52 --memrd 0x7F000 --n 64
ERROR: Argument provided has a wrong value. Memory access not aligned, value
ERROR: outside of range or similar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75181?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 09:28:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b65be29-57de-4b30-b672-57a182a31055</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you readout the bootloader settings page after you have flashed the bootloader, softdevice and application using the nrfjprog command below?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog -f nr52 --memrd 0x7F000 --n 64
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Please post the output in a comment here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75180?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 08:35:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0376a5ca-fb50-4158-9582-3f6228bd320c</guid><dc:creator>AnnaSBX</dc:creator><description>&lt;p&gt;Thanks!
It was compiled . But the app doesn`t starts . I flashed the softdevice after it the bootloader and the app. I am flashing using the nrfjprog. Maybe there is another way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75179?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 08:21:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f12d1d6-fef8-4f3d-b0b7-cfc46024e8ef</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you try to remove the &lt;code&gt;__no_init&lt;/code&gt; attribute, i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint8_t m_boot_settings[CODE_PAGE_SIZE] @ BOOTLOADER_SETTINGS_ADDRESS = {BANK_VALID_APP};
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75177?ContentTypeID=1</link><pubDate>Sun, 05 Feb 2017 10:18:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b09b52d8-b06c-4be4-a747-b74d40752d21</guid><dc:creator>AnnaSBX</dc:creator><description>&lt;p&gt;I cannot compile this change :
Error[Pa034]: an initialized variable can not have the __no_init attribute&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75176?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 10:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13d70d0d-c2ae-4c32-8886-8b0de9a2ef36</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Let me know if you run into any issues with setting the flag. If the answer above solved the issue, then I would appreciate if you could mark the answer as correct by clicking the checkmark in the circle to the left of the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75175?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 10:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92239d77-8ec7-4d48-9eeb-1dc71da3ece0</guid><dc:creator>AnnaSBX</dc:creator><description>&lt;p&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing Bootloader + Application via J-link</title><link>https://devzone.nordicsemi.com/thread/75174?ContentTypeID=1</link><pubDate>Wed, 01 Feb 2017 10:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a57fb42-4901-45fb-b567-eedc6eba963a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Anna,&lt;/p&gt;
&lt;p&gt;if you&amp;#39;re using IAR then you have to change the m_boot_settings variable that is within the IAR specific statement, indicated by the  #elif defined ( &lt;strong&gt;ICCARM&lt;/strong&gt; ) ... #endif statement and not the gcc specific statement, i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#elif defined ( __ICCARM__ )

__no_init uint8_t m_boot_settings[CODE_PAGE_SIZE] @ BOOTLOADER_SETTINGS_ADDRESS = {BANK_VALID_APP};                                                    
__root    const uint32_t m_uicr_bootloader_start_address @ NRF_UICR_BOOT_START_ADDRESS = BOOTLOADER_REGION_START;                   

#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>