<?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>What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24662/what-are-the-test-images-for-single-bank-update</link><description>Hi all, 
 I want to know if the images inside the hci_dfu_send_hex folder are just precompiled hex files from the examples. 
 More specific I want to use the bootloader from SDK11 but it doesn&amp;#39;t seem that the project example and this test images are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Aug 2017 13:38:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24662/what-are-the-test-images-for-single-bank-update" /><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97080?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 13:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:532fd741-d0e7-49b1-b1dc-92141a03acd1</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jorge,&lt;/p&gt;
&lt;p&gt;You only need to apply the modify if you plan to flash the application via Jlink instead of doing OTA DFU.&lt;/p&gt;
&lt;p&gt;If you just want to update the bootloader, you don&amp;#39;t have to do that, just leave it as it is.&lt;/p&gt;
&lt;p&gt;If you plan to flash (and merge maybe) the softdevice + bootloader + application, then you can do that.&lt;/p&gt;
&lt;p&gt;You say it doesn&amp;#39;t work on your custom board, what exactly the issue ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97081?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 11:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0923690a-a962-43e6-b779-67d4785d23fe</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I found out what was causing this.&lt;/p&gt;
&lt;p&gt;I changed in the bootloader_settings.c file the line 19 to &lt;code&gt;uint8_t m_boot_settings[CODE_PAGE_SIZE] __attribute__((at(BOOTLOADER_SETTINGS_ADDRESS))) __attribute__((used)) = {BANK_VALID_APP};&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This change was to use this code on the new board since I was seeing that the code was not going through on the file &amp;quot;bootloader.c&amp;quot; in line 114 &lt;code&gt;if (p_bootloader_settings-&amp;gt;bank_0 == BANK_VALID_APP)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And this was suggested in this &lt;a href="https://devzone.nordicsemi.com/question/75238/how-to-create-combined-image-after-dfu/?answer=75502#post-id-75502"&gt;answer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can you help me on this? If I reverse this change it works on the nrf51 but not on my custom board.
Thank you for the help so far.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97078?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 10:33:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8a9fce6-992c-4528-b410-656cc480f8f1</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I am testing with the nrf51 DK, I will try with your files then and see if it works here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97077?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 10:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0077ff8c-bddd-42e3-acc7-920f5bb7ac6e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I tested here with your script and have no problem updating the bootloader. Are you testing with our nRF51 DK or your own PCB board ? Do you have 32kHz crystal on the board ?
I attached the bootloader hex and .zip file in my answer above so you can test on your side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97076?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 07:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6efb1b6d-f73b-44e5-bfc0-11c028064ac1</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;Yes, I switch to bootloader mode. I do the same when loading the application.&lt;/p&gt;
&lt;p&gt;The command I use to create the zip is : &lt;code&gt;nrfutil.exe dfu genpkg [path of the zip] --sd-req 0xFFFE --application-version 0 --dev-type 0 --dev-revision 0 --bootloader [path of the bootloader]&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For DFU : &lt;code&gt;nrfutil.exe dfu serial --package=[path of zip] --port=COM6 --baudrate=38400 --flowcontrol&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;My board is connected to port COM6 and is using flowcontrol with baudrate of 38400.&lt;/p&gt;
&lt;p&gt;To create the hex files I use KEIL and just build the codes with optimization -O3, I don&amp;#39;t know if you need more specifics for this.&lt;/p&gt;
&lt;p&gt;My point is that the only thing I cannot load via serial DFU is the bootloader, and I am not sure why. At your side you can load the single bank bootloader via serial DFU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97075?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 07:47:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27ccf995-df54-4fe9-9f49-af4fe270457a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi JCosta,&lt;/p&gt;
&lt;p&gt;I assume you switch to bootloader mode before you test on step 4 ? (press button 4 and reset)&lt;/p&gt;
&lt;p&gt;Could you list the scripts you used to generate the .zip files ?&lt;/p&gt;
&lt;p&gt;Could you list the script you used to generate hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97083?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2017 12:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2c6a461-e968-42b0-bf91-4cd06497fa5b</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;What I am trying to do is a serial dfu on a nRF51.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;-I load the Softdevice 130 to the nrf51 board via the nRFgo.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 2&lt;/strong&gt;-I compile the unmodified project of the bootloader on SDK 11 and then load it via nRFgo to the same nrf51 board.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;-To make sure that the DFU is working I load my application via serial DFU using the nRFgo, and the application is correctly loaded since I can see the board advertising the correct services.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Step 4&lt;/strong&gt;-I try to load via serial DFU on the nRFgo the bootloader file (the same I previously loaded) and it give a timeout error :
&amp;quot;Timed out waiting for aknowledgement from device.
Failed to upgrade target. Error is: no data received on serial port. Not able to proceed. (...)&amp;quot;&lt;/p&gt;
&lt;p&gt;So the error that I am having is that I cannot load the unmodified bootloader example from SDK11 via serial DFU. But I can load the applications and old bootloaders&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97082?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2017 12:18:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a33ab0a-2b36-47a4-896d-ce16897e5ad7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;When you mention about an error, always describe what exactly the error is. The hex file doesn&amp;#39;t include any init packet. Hex file is the application/bootloader image. The init packet is only included in the .zip file.&lt;/p&gt;
&lt;p&gt;Please try to describe what you are doing with step by step, starting with flashing the softdevice and so on. Please try testing with unmodified bootloader example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97079?ContentTypeID=1</link><pubDate>Wed, 30 Aug 2017 10:51:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f157c42-8d2d-4d24-a9ac-6e197dcae70f</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;Does the pre compiled (&amp;quot;dfu_test_bootloader_b_hci_s130.hex&amp;quot;) image contains the init packet for the dfu?&lt;/p&gt;
&lt;p&gt;Is this needed for doing the serial DFU? I was searching for some hints on other questions and found that this init packet could be the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97084?ContentTypeID=1</link><pubDate>Tue, 29 Aug 2017 09:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6a89549-4e4e-4df2-abfd-ab3f6eccb428</guid><dc:creator>Jorge</dc:creator><description>&lt;p&gt;I want to make a serial dfu of the bootloader. If I use the bootloader project, I build it and try to load it it give me an error. But if I load the test image of the bootloader there is no error. I am not sure if the test image of the bootloader is suposed to be the image built by the bootloader project.&lt;/p&gt;
&lt;p&gt;If it is not what are the differences?
If they are the same do you know what can be causing one to not work and the other is working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What are the test images for single bank update?</title><link>https://devzone.nordicsemi.com/thread/97074?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 09:19:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b343ed9-6603-4ab5-b293-e9f571c7f4d0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Jorge,&lt;/p&gt;
&lt;p&gt;Which exactly image you asking about, we have several images in the hci_dfu_send_hex folder.&lt;/p&gt;
&lt;p&gt;The image is generated by using nrfutil tool according to the documentation &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/bledfu_example_image.html?cp=4_0_6_4_3_1_1_2"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The name already tell which image/project it has for example dfu_test_app_hrm_s130.zip mean it&amp;#39;s the ble heart rate example app inside.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8032.bootloader.zip"&gt;bootloader.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5280.bootloader.hex"&gt;bootloader.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>