<?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>How can I use DFU with peripherals/blinky?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76576/how-can-i-use-dfu-with-peripherals-blinky</link><description>I have flashed DFU OTA bootlaoder to my nRF82540 DK. (C:\nRF5_SDK_17.0.2_d674dde\examples\dfu\secure_bootloader\pca10056_s140_ble_debug) 
 It shows the two LEDs 1 and 2. 
 I can flash ble_blinky. It shows LEDs 1 and 3 when flashing. It works. 
 BUT So</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Jun 2021 10:46:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76576/how-can-i-use-dfu-with-peripherals-blinky" /><item><title>RE: How can I use DFU with peripherals/blinky?</title><link>https://devzone.nordicsemi.com/thread/316436?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 10:46:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e431da-6fdc-45a5-baf4-f630c3ea0a45</guid><dc:creator>gfmoore</dc:creator><description>&lt;p&gt;Yes I have tried reading this, but sometimes it is very opaque for a newbie. For instance, the second sentence:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If we simply&amp;nbsp;program the application with the bootloader using the programmer...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;er?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway, for anyone else the answer to the first part is that it seems that if you keep the application-version the same or greater then no problem. I&amp;#39;m not really sure that I then need the --debug-mode. It&amp;#39;s hard to understand what the &amp;#39;help&amp;#39; is saying?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think Nordic need to take a look at how they can better help newbies to this embedded stuff as often there are assumptions being made as to how much prior knowledge a person has. The documentation is written for people who already seem to know stuff! rather than for people who don&amp;#39;t.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When new Nordic employees arrive do they get training or does Nordic assume that people already know stuff?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyway, thanks. Moving on to buttonless. That will be a few weeks out of my life then... ;)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Gordon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use DFU with peripherals/blinky?</title><link>https://devzone.nordicsemi.com/thread/316408?ContentTypeID=1</link><pubDate>Tue, 22 Jun 2021 08:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:123f727b-63fc-48ed-83b7-98acc0bf5d7b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Gordon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Check out this tutorial&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&lt;span&gt;. You need to&amp;nbsp;&lt;/span&gt;&lt;strong&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader#h61sjziauupw1j397q9s9ldr01q4j6d5"&gt;Combine application, bootloader and softdevice image - Bootloader setting&lt;/a&gt;.&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Amanda&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use DFU with peripherals/blinky?</title><link>https://devzone.nordicsemi.com/thread/316318?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 15:07:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381357a7-7135-4d87-9b11-47ad06197847</guid><dc:creator>gfmoore</dc:creator><description>&lt;p&gt;So could I ask:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is&amp;nbsp;there&amp;nbsp; any conflict with using --debug-mode and --application-version=1? or does --debug-mode trump --application-version?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Where is the idiot&amp;#39;s guide reference to how the boot process works from master boot to bootloader to application. Apart from positioning an application properly in memory space are there any flags, defines apart from the memory origin in the *.ld linker file?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use DFU with peripherals/blinky?</title><link>https://devzone.nordicsemi.com/thread/316317?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 15:04:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a11bdce1-5c88-4769-9ef1-fffd9e4b3614</guid><dc:creator>gfmoore</dc:creator><description>&lt;p&gt;Done it again. i.e. flashed the application part of blinky.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think I was using SES for the OTA DFU and it mustn&amp;#39;t have had access to the correct public key. I don&amp;#39;t know how to check where it gets the public key from in Segger. So Iused my VS Code version.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Did turn on with button 4 to get into DFU mode and I flashed the same blinky app again (using --debug-mode). It all seems good.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use DFU with peripherals/blinky?</title><link>https://devzone.nordicsemi.com/thread/316294?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 13:57:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec954e8f-e59d-4b1c-842b-8ac451fb159a</guid><dc:creator>gfmoore</dc:creator><description>&lt;p&gt;No, can&amp;#39;t duplicate getting blinky to flash across now. I keep getting: Upload failed, invalid object.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use DFU with peripherals/blinky?</title><link>https://devzone.nordicsemi.com/thread/316279?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 13:21:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79fae00c-1135-43f7-aa40-ebf01942be9d</guid><dc:creator>gfmoore</dc:creator><description>&lt;p&gt;Oh sugar, now I can&amp;#39;t access the device from nRF Connect.&amp;nbsp; Blinky is blinking, but there&amp;#39;s no usb device (Windows) visible. I can get into what I assume is bootloader mode, but what do I do?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit: I seem to have gotten into a mode (using hold reset and turn on), and there is a usb device visible now (BOOTLOADER), but device isn&amp;#39;t recognised for JLInk connect by SES or by using NRF Connect Programmer.&lt;/p&gt;
&lt;p&gt;(SES suggested updated firmware, so I let it.)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Followed these instructions:&amp;nbsp;&lt;a href="https://docs.edgeimpulse.com/docs/nordic-semi-nrf52840-dk"&gt;https://docs.edgeimpulse.com/docs/nordic-semi-nrf52840-dk&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What the heck happened there???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I use DFU with peripherals/blinky?</title><link>https://devzone.nordicsemi.com/thread/316276?ContentTypeID=1</link><pubDate>Mon, 21 Jun 2021 13:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:197282fa-69c5-48a7-8bbd-6ea607e4920b</guid><dc:creator>gfmoore</dc:creator><description>&lt;p&gt;Uhmmm, somehow, I&amp;#39;ve done it! Was it the --debug-mode flag which I stopped using? Ordinary blinky has flashed across. Yay&lt;/p&gt;
&lt;p&gt;So is there an issue with:&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --debug-mode --hw-version 52 --application-version 1 --application $(OUTPUT_DIRECTORY)/nrf52840_xxaa.hex --sd-req 0x00 --key-file $(PROJ_DIR)/private.key $(PROJ_DIR)/dfu_blinky.zip&lt;/p&gt;
&lt;p&gt;Edit: add&lt;/p&gt;
&lt;p&gt;Without the --debug-mode I guess I have to update the --application-version each time?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there not a conflict with using --debug-mode and --application-version=1?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using VS Code hence $(PROJ_DIR)&lt;/p&gt;
&lt;p&gt;Oh and for anyone else, to get into debug mode turn on whilst pressing Button 4 and only flash the application (I used the Nordic nRF Toolbox and DFU from my tablet. (My phone a Samsung Note 4.0 (with custom ROM (ViperOS)) won&amp;#39;t show the advertisement, for DfuTarg, though it will for ble_app_blinky!! )&lt;/p&gt;
&lt;p&gt;And what gives with the formatting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>