<?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>can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19106/can-not-download-app-from-nrfgo-studio-after-download-bootloader</link><description>Hi, Nordic
I use SDK12.1 with nRF52832, I found one issue: 
 if I do not program bootloader, nRFgo Studio can program app. 
 First, erase all flash, then program softdevice. 
 If next I program bootloader, app can not program success, show flash is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Feb 2017 09:21:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19106/can-not-download-app-from-nrfgo-studio-after-download-bootloader" /><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73925?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 09:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c8bf7a-d36c-44dc-8387-f3aab7b41155</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Great! :) 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: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73926?ContentTypeID=1</link><pubDate>Thu, 09 Feb 2017 00:32:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699547b6-bafa-4a98-99cb-5824fe04dd7f</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Thanks. It can work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73924?ContentTypeID=1</link><pubDate>Wed, 08 Feb 2017 13:28:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61c136bf-87fa-45a6-ac7f-05a2076d63e9</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Chaw,&lt;/p&gt;
&lt;p&gt;I found the cause, its one of the known issues with the experimental buttonless DFU example in the SDK, see &lt;a href="https://devzone.nordicsemi.com/question/100609/sdk-12-bootloader-erased-after-programming/?answer=100661#post-id-100661"&gt;this&lt;/a&gt; answer.&lt;/p&gt;
&lt;p&gt;Long story short, the buttonless DFU example, which you have used to add DFU support in your application,  reserves a codepage at 0x7E000 for MBR parameters, which is not necessary and should not been added in the application, only in the bootloader. If the codepage is added in the application, then it will collide with the same codepage that is defined in the bootloader.&lt;/p&gt;
&lt;p&gt;Thus, the entire section in nrf_dfu_settings.c shown below should be commented out in the application. However, be sure that you do &lt;strong&gt;not&lt;/strong&gt; compile the secure bootloader with this section commented out, as it also uses this file!&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#if defined ( NRF52 )

/**@brief   This variable reserves a codepage for mbr parameters, to ensure the compiler doesn&amp;#39;t
 *          locate any code or variables at his location.
 */
    
    
#if defined ( __CC_ARM )

    uint8_t m_mbr_params_page[CODE_PAGE_SIZE]       __attribute__((at(NRF_MBR_PARAMS_PAGE_ADDRESS))) __attribute__((used));

#elif defined ( __GNUC__ )

    uint8_t m_mbr_params_page[CODE_PAGE_SIZE]       __attribute__ ((section(&amp;quot;.mbrParamsPage&amp;quot;)));

#elif defined ( __ICCARM__ )

    __no_init uint8_t m_mbr_params_page[CODE_PAGE_SIZE]     @ NRF_MBR_PARAMS_PAGE_ADDRESS;

#else

    #error Not a valid compiler/linker for m_mbr_params_page placement.

#endif


/**@brief   This variable makes the linker script write the mbr parameters page address to the
 *          UICR register. This value will be written in the HEX file and thus written to the
 *          UICR when the bootloader is flashed into the chip.
 */
 
#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

#endif // defined ( NRF52 )
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73923?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 00:56:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf661f7c-a00d-48fa-8b93-58816ad2cd29</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Thanks.
But when I mergehex application.hex, it shows:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Parsing input hex files.
Merging files.
ERROR: The hex files cannot be merged since there are conflicts.

Could you merge success?
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73922?ContentTypeID=1</link><pubDate>Sat, 04 Feb 2017 19:57:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7d8e771-32df-4a84-a2b4-5da04cd52611</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;This is due to a qwerk in the nRFGo Studio  software.  Its been this way for some time.  In order to program the SD, App and Bootloader you need to do the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Merge the SD, Bootloader and App into a single hex file.&lt;/li&gt;
&lt;li&gt;Validate the Application code so that the Bootloader will jump to the Application&lt;/li&gt;
&lt;li&gt;Program this merged+validated image under the Application tab in nRFGoStudio&lt;/li&gt;
&lt;li&gt;Crack a beer.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Here&amp;#39;s a link to how to merge and validate.  &lt;a href="https://devzone.nordicsemi.com/question/22056/combining-sd-dfu-and-application-hex-and-programming/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
Note that the for the nRF52 using SDK12 the application validation step does not work as stated in the link.  You need to use the nrfutil tool to create the validation settings.  If you need further help with this step let me know.  It should be be documented in the nrfUtil.&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;DC&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73921?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2017 00:38:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4c8ced4-a26e-4364-b78d-42432e79f3f1</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Hi, I have uploaded applicaiton/bootloader project, plz check.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73920?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 12:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f495a169-7eb2-401e-8eb6-ffd88cb2bf32</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I get the same behaviour as you, but I cannot see any conflicts when I look at the flash after I have the application and bootloaderhex files separatly. Can you upload the zipped project folder for the bootloader and the application so that I can try to build them my self?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73918?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 02:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfc42d2d-bc1e-4298-a026-d9a25c51f194</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Hi, i have uploaded App, BL and SD, plz help me check.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73919?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 10:34:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1879de1-5ddf-4b2a-8050-0a8ad3e8bb59</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Have you erased the entire flash using nrfjprog -f nrf52 -e first? Could you upload the application, bootloader and softDevice hex files you&amp;#39;re trying to flash to the nRF52?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73917?ContentTypeID=1</link><pubDate>Sat, 21 Jan 2017 02:42:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7561e9e2-b1ee-496b-9a5f-2ca720d0840e</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;Hi, I change application ROM size to 0x54000, but still fail, same error message (Flash is not erase)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73915?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 08:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d68ba931-cfd1-4fb0-ad8c-cae8c39de6cd</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;The nRF52832 has 512kB (0x80000 bytes) of Flash. If the application starts at 0x1F000 occupies 0x61000 bytes, then there is no room for the bootloader, since 0x1F000 + 0x61000 = 0x80000. Hence, you must adjust the size of the application to make room for the bootloader, i.e. application ROM size = 0x73000 - 0x1F000 = 0x54000.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73914?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2017 00:35:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6f04827-3e4c-4acc-b4f8-66a432073996</guid><dc:creator>Chaw</dc:creator><description>&lt;p&gt;bootloader:
ROM---- Start: 0x73000   size: 0xB000
RAM---- Start: 0x20002C00  size: 0xD380&lt;/p&gt;
&lt;p&gt;application:
ROM ----- Start:0x1F000  Size: 0x61000
RAM ----- Start:0x20002138 Size: 0xDEC8&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can not download app from nRFgo Studio after download bootloader</title><link>https://devzone.nordicsemi.com/thread/73916?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 09:32:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0c554ee-dac4-4795-aac1-79b3271edd80</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you post the ROM and RAM settings for the application and the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>