<?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>doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58365/doing-dfu-ble-as-a-pca10059-dongle</link><description>To the kind attention of Nordic support team, 
 I&amp;#39;m very interested in understanding how to have firmware that is working as in PCA10059 in respect to USB bootloader and fw connectivity to do dfu ble. 
 I did: 
 C:\Users\astella\AppData\Local\Programs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jan 2021 03:57:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58365/doing-dfu-ble-as-a-pca10059-dongle" /><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/288068?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 03:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b09f04e-5537-4b62-9941-77d26a54f398</guid><dc:creator>jacksong</dc:creator><description>&lt;p&gt;awesome!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/237039?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 08:04:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:071c8288-52cb-4255-afed-b98cc2122ba8</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;Thank you so much Vidar for your help.&lt;/p&gt;
&lt;p&gt;NRF_BL_DFU_ENTER_METHOD_PINRESET was set as 1 in sdk_config.h.&lt;/p&gt;
&lt;p&gt;When set as a 0 the flashed program is running, even after removing power supply and put power supply back again. That is fine and thank you for let me discover those settings in sdk_config.h&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/237024?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 07:27:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be12c126-df15-49ab-bb1b-fc7d3c059631</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;After a pinreset? The open booloader is configured to enter DFU mode after pinresets by default (can be disabled in sdk_config.h). It detects this by reading out the POWER-&amp;gt;RESETREAS on boot.&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/236947?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 15:51:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39f7a810-049e-4a97-a18b-b93ea7997cae</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;After a reset PCA10056 DK always start the open bootloader, it seems like the previously flashed connectivity firmware cannot run after the first time anymore&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/236919?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 14:52:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3afbbe36-40eb-4fe0-a606-a1d326eea603</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;I flashed PCA10056 DK with usb open bootloader coming from sdk15.2&lt;/p&gt;
&lt;p&gt;Then I used&amp;nbsp;&amp;nbsp;C:\Users\astella\AppData\Local\Programs\Python\Python38\Lib\site-packages\pc_ble_driver_py\hex\sd_api_v5&lt;/p&gt;
&lt;p&gt;connectivity_4.1.1_usb_with_s132_5.1.0_dfu_pkg.zip&lt;/p&gt;
&lt;p&gt;Using these files, I was able to program PCA10056&lt;/p&gt;
&lt;p&gt;nrfutil dfu usb-serial -pkg connectivity_4.1.1_usb_with_s132_5.1.0_dfu_pkg.zip -p COM13&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After that, connectivity firmware was running properly and I was able to do ota updating in a second board&lt;/p&gt;
&lt;p&gt;using this command:&lt;/p&gt;
&lt;p&gt;nrfutil dfu ble -ic NRF52 -pkg app26022020.zip -p COM12 -n &amp;quot;DfuTarg&amp;quot;&lt;br /&gt; [####################################] 100%&lt;br /&gt;Device programmed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/236909?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 14:29:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89b28a93-9c74-4ef3-8138-f05303d8c432</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;I tried something like this :&lt;/p&gt;
&lt;p&gt;nrfutil pkg generate --sd-req 0x0 --sd-id 0x0 --hw-version 52 --key-file private.key --application-version 1 --application connectivity_4.1.1_usb_for_s132_5.1.0.hex --softdevice s132_nrf52_5.1.0_softdevice.hex dfu.zip&lt;br /&gt;Zip created at dfu.zip&lt;/p&gt;
&lt;p&gt;I programmed PCA10056 DK with secured usb bootloader already flashed in it.&lt;/p&gt;
&lt;p&gt;It took a while but the dfu.zip was programmed.&lt;/p&gt;
&lt;p&gt;After that I had no the desired connectivity firmware working in order to do ota updating of a second board.&lt;/p&gt;
&lt;p&gt;To recap:&lt;/p&gt;
&lt;p&gt;the situation is:&lt;/p&gt;
&lt;p&gt;In PCA10056 DK&amp;nbsp;&lt;span&gt;s132_nrf52_5.1.0_softdevice.hex&amp;nbsp;and&amp;nbsp;connectivity_4.1.1_usb_for_s132_5.1.0.hex make it possible to do ota updating of a second board, when both files are flashed using jlink&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;In the same PCA10056 I flashed the dfu.zip built with those working hex files, but using the secured usb bootloader. And it is not possible anymore to do ota updating of a second board.&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 don&amp;#39;t know either if I&amp;#39;m wrong using precompiled files and/or wrong settings or I need to re build with appropriate option for the linker.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hope my question is clear.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/236873?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 13:32:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cdcdc02-008c-4c4c-b82a-00a89f61e77b</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;Thank you Vidar for your kindness. We are going to make a custom board that is dongle like.And it is meant to ota update firmware also in a second board. We are interested in understanding what is the firmware that is in the dongle. In order to have our custom board like it. With a usb bootloader and a usb connectivity firmware.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m doing some test using a PCA10056. I&amp;#39;d like to better understand what firmware to flash in it so that it completely works like a dongle. I don&amp;#39;t understand at this stage if I can use precompiled files or I have to build custom files, based on your connectivity src files. Please, Let me know if I&amp;#39;m clear in explaining what I need to understand.&lt;/p&gt;
&lt;p&gt;In the meantime I&amp;#39;m trying to better read the link you just sent and build a dfu package using the file&lt;/p&gt;
&lt;p&gt;connectivity_4.1.1_usb_with_s132_5.1.0.hex&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/236871?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 13:24:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e95f65dc-57da-4be4-b405-61489cd53685</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you have seen it already, but I would very much recommend reading Einar&amp;#39;s blog post about programming the 52840 dongles here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial&lt;/a&gt;.&amp;nbsp;The easiest way to program it is to use the Programmer app in nRF connect for desktop. It accepts hex files as well. Let me know if you still have questions after reading this.&lt;/p&gt;
[quote user="astella"]I don&amp;#39;t know if&amp;nbsp;&lt;span&gt;connectivity_4.1.1_usb_with_s132_5.1.0.hex has been linked so that it can be used to generate a dfu package. &lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;Yes, it should work. DFU package generator will automatically strip away the MBR section which occupies&amp;nbsp;the first flash page.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/236801?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 11:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd47fd4-4828-4613-bd47-e7f5e1b802e4</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;When I compile my own application in order to work together with the usb bootloader, I add linker info for flash start and ram start. I don&amp;#39;t know if&amp;nbsp;&lt;span&gt;connectivity_4.1.1_usb_with_s132_5.1.0.hex has been linked so that it can be used to generate a dfu package. May you please confirm it? I have tried and did a dfu package but it seems it doesn&amp;#39;t work yet&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: doing dfu ble as a PCA10059 dongle</title><link>https://devzone.nordicsemi.com/thread/236789?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 10:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8d9bd42-d371-4093-befc-9749290a66ec</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;I saw in&amp;nbsp;C:\Users\astella\AppData\Local\Programs\Python\Python38\Lib\site-packages\pc_ble_driver_py\hex\sd_api_v5&lt;/p&gt;
&lt;p&gt;connectivity_4.1.1_usb_with_s132_5.1.0.hex. I understood it is an hex file containing soft device and usb connectivity firmware together.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m trying to do a dfu package using this file, so that it can be used with the usb bsecured bootloader&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>