<?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>DFU example doesn&amp;#39;t work. need explain step by step</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27288/dfu-example-doesn-t-work-need-explain-step-by-step</link><description>Hi! 
 nRF52. S132, SDK13. 
 I try to use ble_dfu_send_hex example. 
 
 what shoul I do first?
via nrf gostudio load SD. correct? 
 
 Which SD? from this folder (dfu_test_softdevice_s132)
Or usual SD (s132_nrf52_4.0.2_softdevice) 
 
 what should</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Dec 2017 07:25:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27288/dfu-example-doesn-t-work-need-explain-step-by-step" /><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107804?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 07:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ca05c94-5a9e-490f-869f-134cafa33451</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Thanks for Your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107803?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 07:18:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d1a050-ab8a-4938-9442-db3448e0374b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Mikhail: Please create a new case, this case is pretty long now.
If you see something doesn&amp;#39;t work you need to explore the code and figure out why. I can&amp;#39;t explain everything for you step by step. If you want to switch from application to bootloader, please try to test with the buttonless example included in the SDK and use exactly the same what we do there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107802?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 15:18:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abe18529-0876-4c81-8cc0-b3f2126b1af3</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;sorry, now works.
But after setting 0xB1 and reboot, no DFUTarg advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107800?ContentTypeID=1</link><pubDate>Thu, 30 Nov 2017 11:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf3a494-7e8a-42bc-9b0d-eff7d2a2a18b</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hi again!
Sorry. But I can&amp;#39;t write from my app&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    err_code = sd_power_gpregret_clr(0, 0xffffffff);
VERIFY_SUCCESS(err_code);

err_code = sd_power_gpregret_set(0, BOOTLOADER_DFU_START);
VERIFY_SUCCESS(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;when try to read in the bootloader:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  if(NRF_POWER-&amp;gt;GPREGRET == BOOTLOADER_DFU_START)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;result- not writed.
?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107798?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 13:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6e10b4e-813e-4499-a57d-2036817ee2f7</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Yes, all work fine. Should read appendix 1)
Thanks for help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107799?ContentTypeID=1</link><pubDate>Wed, 29 Nov 2017 11:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7294053c-e569-4b30-a9c5-3cf41408f148</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I folowed all steps. And bootloader work good. I mean: when flash SD and bootloader, I can see advertise DFUTarg. I can connect and uppload firmware .zip prepared before. Once again- it works good. Now I learn appendix 1.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107805?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 16:41:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d4ec87e-7847-4033-a2bd-5a7271f06bbe</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Before you test something like that, please make sure bootloader works, do what i described in the guide, all the step. And let me know if it works. I can&amp;#39;t follow you if I don&amp;#39;t know what you have tested and what you have not.
Also please check appendix 1, you need to create the bootloader setting hex to be able to flash with Jlink.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107797?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 13:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e364d6e8-8d3e-42f8-b1f2-e51cb3bdfa65</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Now I try do next steps: - flash SD, flash Bootloader, flash .hex app- all via J-link. Correct? After that I don&amp;#39;t have work my app, but I see DFUTarg in the Air. Is it normal? I nothink changed in .hex app. What I did wrong? Thanks for help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107796?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 13:13:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37311537-2338-4380-8329-7530cd60069e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mikhail,&lt;/p&gt;
&lt;p&gt;Sorry I didn&amp;#39;t see your last comment. Yes you can flash your app using Jlink and then use DFU OTA later. You have 2 option to enter DFU , via holding a button when the board reset or enter it via BLE command (buttonless example). Please have a look at appendix 2 in my blog.&lt;/p&gt;
&lt;p&gt;After you enter DFU bootloader with a button, you should do DFU OTA, not flashing via Jlink.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107795?ContentTypeID=1</link><pubDate>Tue, 28 Nov 2017 13:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a58188dc-9b66-45ca-9216-55d4ee9969d2</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hung, final question- how to make DFU with button and with first flashed .hex.
I mean, I flash .hex as usual. After that If I press button and reboot, I will can flash via DFUTarg.
How to do it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107794?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 15:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1b1e4eb-9432-40db-ba0b-563c9737a3e5</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Ok. I need first type of bootloader with keys. But I want to do one thing- I want to flash my app via programmer (J-link) after I want to have a possibility upgrade via DFU. Which settings should set in my app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107793?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 13:35:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c01e4e2a-925a-4673-ade7-36cab47a4b1c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mikhail,&lt;/p&gt;
&lt;p&gt;The buttonless project is simply a showcase how you enter the bootloader by a command via BLE instead of press a button and trigger a reset. Basically what it does is to wait for the command on a characteristic (DFU service) and when there is a write command it will write to bootloader setting in flash a flag and then trigger a reset. After that the bootloader when booting up will check the flag and enter DFU mode.&lt;/p&gt;
&lt;p&gt;You need to include ble_dfu.c into your project and implement that dfu service in your application. You need to init it and also add the ble_dfu_on_ble_evt() into ble_evt_dispatch() as normal service.&lt;/p&gt;
&lt;p&gt;There is nothing about keys here so you don&amp;#39;t need public_key.c&lt;/p&gt;
&lt;p&gt;Note that you need both the bootloader and the buttonless dfu, they are not the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107792?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 12:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7bbf860-6cd3-4f09-bb1b-6262b5b3d987</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Also, I can&amp;#39;t find in the experimental_ble_app_buttonless_dfu where should I change public_key.c to my file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107791?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 11:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cf9880e-3f52-460f-b54d-2c7fb1f8f77f</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I try to buttonless DFU. I have one question- is the necessary spetial prepare my app? Or this DFU characteristic included in the DFU buttonless bootloader? And I can use my previous prepared app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107806?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 09:22:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b093e13e-74a6-460a-bd22-56062bb9f7bc</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Yes. after change clock_lf_cfg now work. Thanks. I just forget that I can find by search.
I try to boot via this bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107807?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 08:54:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70edcdc4-fb40-43f8-a8ce-16c7ebe53050</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;The clock source is selected in ble_stack_init() in nrf_ble_dfu.c&lt;/p&gt;
&lt;p&gt;Note that you can always do a full search (find in files) using Ctrl+Shift+F, using that you can find for example clock_lf_cfg  in all files and can quickly find where the clock is defined.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107789?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 08:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9601ac2-d0d9-44fb-96b5-1ef2d0fcd1f6</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;52832QFAA suppose 512&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107790?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 19:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88aa62f2-d7fd-414f-aac5-6aed15e37986</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;About chip, I&amp;#39;ll give answer tomorrow. I ask regarding RC because I can&amp;#39;t find a place in the boot project where I can change it settings (from qristall to RC). In the SDK i find and changed it. I think, I well good know SDK. But I also can&amp;#39;t find place in the boot where set DFUTarg for ex.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107788?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 16:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b73083f-cd6a-443c-af90-e648705872ab</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, if you don&amp;#39;t have crystal, you use RC for the bootloader. I&amp;#39;m not sure why you have to ask, you already mentioned about that above ??&lt;/p&gt;
&lt;p&gt;If you see issue, you debug it. That&amp;#39;s why I ask how familiar you are with the SDK. The bootloader is not a black box, you can debug and find the reason why it doesn&amp;#39;t advertise. It&amp;#39;s no different from a normal application.&lt;/p&gt;
&lt;p&gt;You have 149 errors could be because the size of the bootloader is bigger than the size allocated for it, you need to increase the size of the bootloader in the project setting. You need to move the bootloader down a little bit to make enough room for it.&lt;/p&gt;
&lt;p&gt;Which chip is on your custom board ? we have 2 variant, one with 256kB and one with 512kB flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107787?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 13:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d59b22-2332-498e-be5f-51f193dda086</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;When set optimization 0- 149 errors. When return to 3- 0 errors. ??
Answer for my previous question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107786?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 10:04:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd34a25c-a698-46d2-8b20-cfa7f9ad75f0</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Terefore, you mean that with flash only SD and boot, should be advertise DFUTarg?
What about my custom board- there is no cristall- I use RC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107785?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 15:30:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4ba0013-8bf7-43a6-a0d5-c7f9912c2feb</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;I&amp;#39;ll try and write.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107784?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 13:47:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4759f553-2454-4dd3-adde-d74fe16690e5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Maybe you should turn on Logging and check what is in the log. You can switch the log on in the SDK_config.h.&lt;/p&gt;
&lt;p&gt;Also you can add breakpoint inside the bootloader to check what goes wrong. You may need to set optimization level to 0 to debug.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107783?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 13:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dad15dc2-d3ee-4025-8851-d2c9516883fc</guid><dc:creator>Mikhail</dc:creator><description>&lt;p&gt;Hi!
I don&amp;#39;t have any advertise. I folow all steps till D1. I flashed only SD and bootloader. No advertise. I have nrf connect app.
Additional- I use custom board. This board doesn&amp;#39;t have cristall. We use RC. I mean&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_stack_init()

	nrf_clock_lf_cfg_t clock_lf_cfg = {	.source        = NRF_CLOCK_LF_SRC_RC,
																			.rc_ctiv       = 16,
																			.rc_temp_ctiv  = 2,
																		};
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU example doesn't work. need explain step by step</title><link>https://devzone.nordicsemi.com/thread/107782?ContentTypeID=1</link><pubDate>Tue, 21 Nov 2017 10:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79a1ce61-b682-414a-b2c9-aaaee8f92b5d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;If you don&amp;#39;t have any application flashed, the bootloader will detect that and will enter bootloader mode and wait for DFU update. Still could you describe what the problem you have now when following my guide ? Please try to test without any modification, the device should advertise as DFUTarg, you can check it using nRFConnect app on the phone or PC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>