<?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>Ble peripheral and central with dfu could not burn when using nrfjprog(Close)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18606/ble-peripheral-and-central-with-dfu-could-not-burn-when-using-nrfjprog-close</link><description>Hi, 
 I try to using nrfjprog to burn softdevice + bootloader + applacation, but it shows that application burn failed.
 
 My SDK version is nRF5_SDK_12.2.0_f012efa and I using Keil uVersion5 to generate the hex files. 
 
 Softdevice: s132_nrf52_3</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Dec 2016 02:09:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18606/ble-peripheral-and-central-with-dfu-could-not-burn-when-using-nrfjprog-close" /><item><title>RE: Ble peripheral and central with dfu could not burn when using nrfjprog(Close)</title><link>https://devzone.nordicsemi.com/thread/71816?ContentTypeID=1</link><pubDate>Wed, 28 Dec 2016 02:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6f08d76-7fe3-475a-ba1e-8226cece3392</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;It&amp;#39;s work. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble peripheral and central with dfu could not burn when using nrfjprog(Close)</title><link>https://devzone.nordicsemi.com/thread/71815?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2016 14:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a001d5e4-bd3a-4411-851b-2679c8c1b892</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;It was because a small bug with our buttonless approach. The nrf_dfu_settings.c file is used. It&amp;#39;s the same file used for the DFU Bootloader and it will try to write to the UICR the address of the MBR setting page which is not needed for the buttonless application.&lt;/p&gt;
&lt;p&gt;When you use nrfjprog to program the application, it see that the address in UICR is already written and it won&amp;#39;t be able to write to that area, throwing you the error.&lt;/p&gt;
&lt;p&gt;So what you need to do is to clone another file nrf_dfu_settings.c file and use it for the buttonless example (so that the DFU bootloader won&amp;#39;t be affected), then remove the line 74 in the file, where we write to UICR:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#if defined ( __CC_ARM )
    uint32_t m_uicr_mbr_params_page_address __attribute__((at(NRF_UICR_MBR_PARAMS_PAGE_ADDRESS)))
                                                    = NRF_MBR_PARAMS_PAGE_ADDRESS;

#elif defined ( __GNUC__ )
    volatile uint32_t m_uicr_mbr_params_page_address    __attribute__ ((section(&amp;quot;.uicrMbrParamsPageAddress&amp;quot;)))
                                                    = NRF_MBR_PARAMS_PAGE_ADDRESS;
#elif defined ( __ICCARM__ )

    __root    const uint32_t m_uicr_mbr_params_page_address @ NRF_UICR_MBR_PARAMS_PAGE_ADDRESS
                                                    = NRF_MBR_PARAMS_PAGE_ADDRESS;

#else

    #error Not a valid compiler/linker for m_mbr_params_page placement.

#endif
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After that it should be OK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble peripheral and central with dfu could not burn when using nrfjprog(Close)</title><link>https://devzone.nordicsemi.com/thread/71814?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2016 12:10:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c13e9f9-cc36-4b51-bc99-9c660fdbf06c</guid><dc:creator>Kevin</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;The project: ble_app_hrs_rscs_relay_test.rar&lt;/p&gt;
&lt;p&gt;I upload project at last&lt;/p&gt;
&lt;p&gt;Thanks!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ble peripheral and central with dfu could not burn when using nrfjprog(Close)</title><link>https://devzone.nordicsemi.com/thread/71813?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2016 11:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3831c315-d12f-4233-b2de-89a554dfe14a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Could you attach your project here ? I suspect something wrong with the flash configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>