<?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>Couldn&amp;#39;t use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20213/couldn-t-use-nrfgo-studio-to-progrm-52832</link><description>Hi 
 I&amp;#39;m using nRF5 SDK V12.0 and S132 on nRF52832, I add a peripheral service base on the ble_app_multilink_central example so that the phone can connect to the center. Now all the function is OK and I want to mergehex the files into one file. But I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Mar 2017 14:03:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20213/couldn-t-use-nrfgo-studio-to-progrm-52832" /><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78766?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2017 14:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e758b007-b68c-42d4-917c-b9930bb523e0</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Are you able to upload your project files here so I could try it at my end? If your project is confidential you can create a support case through MyPage on www.nordicsemi.com and refer to this case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78765?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 12:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04db69b6-510a-4bd5-a3b4-0eb5a1fc8aea</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I found that fs_flash_page_end_addr which will use the NRFFW[1] and I use sd_power_gpregret_set to write the register. I have delete it and don&amp;#39;t do the fs_init, but the bootloader still will disappear when use keil to download online.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78764?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 09:15:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5b9178b-4050-460b-828a-9e84c3378cf7</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Upon inspection of your application hex I have found two lines at the end of the file which writes to the NRFFW[1] register in the UICR region. Specifically the two are :020000041000EA  (this is a linear address extension which points to the UICR region) and :0410180000E00700ED (this is where data is written to NRFFW[1]). This indicates that you have not been successful in removing all the code which writes to the MBR. If you&amp;#39;re unable to find where in your code this is happening you can try to simply delete these two lines from the bottom of your hex file, and then see if everything behaves as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78763?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2017 01:23:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13922ba2-ed5c-448a-a02d-a4d9364343f6</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;Thank you for your help. Please see the new attachments I upload.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78762?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 08:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6e0cb7f-7046-4e7d-9297-e67e5edb5b69</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;I have manually edited the application hex you uploaded and deleted the conflicting regions. After this everything works as it should for me, both with mergehex, keil, nrfjprog and nrfgo studio. Could you please upload the new version of your application so I can try with that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78761?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2017 07:07:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7799ef9-50f4-4e14-8354-f4aec2ae25d7</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;Hi Jørn,
Yes, I&amp;#39;m using the buttonless DFU. Now I do as the link you give me, it can merge the files and can program. However it still have two problem. One problem is like the link that the bootloader will disappear when using keil to download application. Another problem is:1-Program the softdevice 3. 2-program the bootloader (At this point the bootloader appears on the nrfgo aplication.) 3-Program the aplication . It&amp;#39;s OK just for first time, but if I program the same application again using nRFgo, it will indicatesthe flash is not erased.
My application flash and ram setting as follow:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IROM1 Start: 0x1F000 Size: 0x59000
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;IRAM1 Start: 0x20002CD0 Size: 0xD330&lt;/p&gt;
&lt;p&gt;And I do not compile the EDIT 28.10.16 part as the link said&lt;a href="https://devzone.nordicsemi.com/question/100609/sdk-12-bootloader-erased-after-programming/"&gt;link text&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What reason would it be? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78760?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 14:21:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47ab9f7f-914a-49e1-baba-ce81e2c46713</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Are you using buttonless DFU? If that is the case you might have a problem with both the application code and the bootloader trying to store UICR information in a region of flash reserved for MBR settings. Please see the second part of the answer in the following link: &lt;a href="https://devzone.nordicsemi.com/question/100609/sdk-12-bootloader-erased-after-programming/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78759?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 13:00:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93a2ccf6-d729-4523-a295-dfaada8948e8</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;I have tried it, but it still cann&amp;#39;t merge. Even I have tried  to change the application code size to 0x50000 or 0x40000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78758?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 12:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbcdd537-cf13-4f12-9e98-ab6c6bbb431e</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;In this case the application goes from address 0x1F000 to address 0x1F000+0x61000=0x80000, so you see the final address of the application lies inside the memory allocated to the bootloader which starts at 0x78000. Try changing the application code size to 0x59000 (=0x78000-0x1F000).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78756?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 12:42:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ce0e1a5-59cc-430a-95d1-cc53361a4438</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;I haven&amp;#39;t change anything about the IROM1 and the IRAM1 in the Keil-&amp;gt;Options for Target-&amp;gt;Target.
Application: IROM1 start 0x1F000,size 0x61000
Bootloader: IROM1 start 0x78000, size 0x6000&lt;/p&gt;
&lt;p&gt;Do I need to change it? But I donn&amp;#39;t know how to  allocated memory size for the application code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78754?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 12:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c31b74d-5987-43d2-9d70-6c9a464ca3eb</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;I was a bit hasty in my original answer, the conflict does not lie between your application code and the softdevice, but between your application code and your bootloader. They both try to write to the same address location, line 3120 in your application code hex and line 1431 in the bootloader code hex. This can occur if the flash address for application start + allocated size is greater than the bootloaders start address. You should check whether or not this is the case, and change the allocated memory size for the application code if there is a conflict.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78753?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 10:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfc27b27-16ca-4958-b1e8-f0eae5a48b34</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;Hi Jørn,&lt;/p&gt;
&lt;p&gt;Thanks.  Please see the files upon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78757?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 07:26:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ec2fe60-ad75-4585-87fe-8900e579a8a5</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;I am able to program the hex file you uploaded with nRFgo studio, after programming the softdevice, just fine. Could you please upload the rest of your files so I can try to retrace your steps?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78755?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2017 02:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14847cd7-4606-411a-877d-b4d72d5f0f4c</guid><dc:creator>Alice</dc:creator><description>&lt;p&gt;Hi Jørn,&lt;/p&gt;
&lt;p&gt;The hex file can merge the S132 softdevice, but it cann&amp;#39;t merge the bootloder file. I have read the link you give me and I still cann&amp;#39;t solve the problem. Could you tell me how to solve the problem and merge them in detail? Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Couldn't use nRFgo studio to progrm 52832</title><link>https://devzone.nordicsemi.com/thread/78752?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2017 14:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc82de2f-4f5e-4f50-8259-bd9497debb69</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Alice&lt;/p&gt;
&lt;p&gt;This error can arise when addresses in the hex files you are trying to merge overlap. In your case the address stated in line 1 of your file matches the one in line 3993 of the s132 softdevice hex.&lt;/p&gt;
&lt;p&gt;Please see the following links:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/23501/s310v2-mergehex-bootloaderhex-bootloader_settingshex-conflict/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/22056/combining-sd-dfu-and-application-hex-and-programming/?answer=22246#post-id-22246"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>