<?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>pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes when I</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39185/pca10059-replacing-stock-bootloader-with-adafruit-uf2-using-usb-dfua-signature-i-can-generate-a-zip-file-with-nrfutil-but-what-key-should-i-use-i-tried-to-use-just-a-private-key-and-flash-that-generated-packet-with-nrfutil-bu</link><description>pca10059, replacing stock bootloader with Adafruit UF2, using USB dfu Hi. I currently don&amp;#39;t have a J-Link at hand, so I tried to flash the UF2 bootloader using the stock DFU bootloader over USB. nRF Connect can flash an application to the dongle, but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Oct 2018 11:48:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39185/pca10059-replacing-stock-bootloader-with-adafruit-uf2-using-usb-dfua-signature-i-can-generate-a-zip-file-with-nrfutil-but-what-key-should-i-use-i-tried-to-use-just-a-private-key-and-flash-that-generated-packet-with-nrfutil-bu" /><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/152353?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 11:48:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cf64245-ad5f-4098-b739-cb15f620e963</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yeah, I think you are on the right track. Let us know (by creating new question) if you have any problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Happy coding :)&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/152300?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 08:23:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12ca38a1-26c1-4cb8-9b53-42a7c0cd9bf6</guid><dc:creator>uhrheber</dc:creator><description>&lt;p&gt;You&amp;#39;re right.&lt;/p&gt;
&lt;p&gt;I wasn&amp;#39;t planning on buying one, because I thought that I would mostly play around with micropython, and only a little bit of C, but it now seems that I have to fully dive into SDK and bootloader development, so I folded and ordered one.&lt;/p&gt;
&lt;p&gt;I already had ordered a full J-Link, because I always wanted one.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/152253?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 15:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:139ec7a3-2c2e-4bb1-baa2-df34281f336a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I see your point. But in my opinion it&amp;#39;s worth it to get a nRF52DK. You have full GPIO, NFC, LED to play with. And please be aware that you can use the nRF52DK as a Jlink programmer to flash the dongle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can get the nRF52DK as low as $39.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/152210?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 12:17:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f22deea-ad08-48e8-a6e6-60137c888751</guid><dc:creator>uhrheber</dc:creator><description>&lt;p&gt;Hung,&lt;/p&gt;
&lt;p&gt;I already imagined, that you signed the bootloader to prevent accidential overwriting.&lt;/p&gt;
&lt;p&gt;But:&lt;/p&gt;
&lt;p&gt;- It would&amp;#39;ve been nice if you told us that in the documentation&lt;/p&gt;
&lt;p&gt;- it would&amp;#39;ve been even nicer if you gave us the key&lt;/p&gt;
&lt;p&gt;Don&amp;#39;t get me wrong, It&amp;#39;s very kind of you to sell this dongle at that incredibly low price. I bought 5 of them, because I&amp;#39;m a hardware guy, and connect lots of things to microcontrollers, so I break some here and there. At that price, I don&amp;#39;t even bother replacing a damaged micro.&lt;/p&gt;
&lt;p&gt;I have a ton of different programmers and debuggers here, but unfortunately no J-Link (yet).&lt;/p&gt;
&lt;p&gt;I might buy a nRF52 DK, if I keep developing for nRF52. I could also use an OpenOCD programmer, like the BlackMagicProbe, to flash the bootloder, but for that I would have to dig into the memory layout of the nRF52840 in detail, and I just didn&amp;#39;t have the time for this.&lt;/p&gt;
&lt;p&gt;But, there are a lot of people that are just starting into the world of microcontrollers, and can afford a nRF52840 dongle, but not a J-Link programmer. This dongle is, just to name an example, a good device to start with Micropython or Circuitpython.&lt;/p&gt;
&lt;p&gt;And it would be even better, if beginners without a programmer could replace the bootloader.&lt;/p&gt;
&lt;p&gt;But nevermind, thanks for your effort, and have a nice day.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/152196?ContentTypeID=1</link><pubDate>Tue, 09 Oct 2018 11:25:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:578d8ca7-4b0d-47c1-a985-9e061a4da9fa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Uhrheber,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As you can find here:&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_open_bootloader.html?cp=4_0_0_4_3_2"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_open_bootloader.html?cp=4_0_0_4_3_2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The bootloader update still requires signed&amp;nbsp;package.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The reason we have this requirement is to avoid the device to be bricked by a bootloader update from untrusted source.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that the dongle we created to be used as a development tool, not as a development kit. So the main purpose is to be used for nRFConnect and other app. So the bootloader is not supposed to be changed.&amp;nbsp;I don&amp;#39;t think we will distribute the private key we used for the stock bootloader.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, if you want to change the flash it it&amp;#39;s not too difficult, you just need to solder the same header you can find on the Debug Out P19 of the nRF52 DK on to the Dongle and then use the cable to erase the chip and flash your own program.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/152111?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 17:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:130cbd63-9a44-4367-8e8a-0f69ead691c8</guid><dc:creator>uhrheber</dc:creator><description>&lt;p&gt;Many thanks, I see things more clearly now.&lt;/p&gt;
&lt;p&gt;I was able to generate a package with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --sd-req 0xAE --application-version 1 --application firmware.hex firmware.zip&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The softdevice was already flashed, so I could flash the package with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil dfu usb_serial -pkg firmware.zip -p /dev/ttyACM0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And it worked.&lt;/p&gt;
&lt;p&gt;Then I tried to update the bootloader, and generated a package with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfutil pkg generate --hw-version 52 --sd-req 0xAE  --bootloader pca10059_bootloader.hex bootloader.zip --bootloader-version 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But when trying to flash it, I got the error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;pc_ble_driver_py.exceptions.NordicSemiException: Extended Error 0x08: The init packet does not contain a signature, but this bootloader requires all updates to have one.
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, how do I add a signature?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/152028?ContentTypeID=1</link><pubDate>Mon, 08 Oct 2018 11:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46a24a64-ee76-42c2-98c5-243acb0aee8c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Uhrheber,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I misread that you were using the Adafruit bootloader. It&amp;#39;s my mistake.&lt;/p&gt;
&lt;p&gt;Regarding the stock bootloader on the PCA10059, it&amp;#39;s an openbootloader. You can find it in the SDK at&amp;nbsp;\examples\dfu\open_bootloader\pca10059_usb&lt;/p&gt;
&lt;p&gt;There isn&amp;#39;t a key for the open bootloader, when you generate the .zip package for it you simply remove --key-file parameter when calling nrfjprog.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then you can use nrfutil to update the dongle, however, I would suggest to use the nRFConnect Programmer app to do flashing for the PCA10059. You don&amp;#39;t even need to create the .zip file, simply just choose the hex file and then flash it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that the PCA10059 comes with the MBR at address 0x0000&amp;nbsp; - 0x1000. And it&amp;#39;s not possible to replace the MBR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/151867?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 15:01:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:843d8da1-4ecb-49f2-b3e0-af3a4199be8d</guid><dc:creator>uhrheber</dc:creator><description>&lt;p&gt;Sorry, I may have written this in a misleading way.&lt;/p&gt;
&lt;p&gt;My question is not about the Adafruit bootloader, this is merely an example.&lt;/p&gt;
&lt;p&gt;I wanted to know in general, how to overwrite the stock bootloader. And I&amp;#39;d like to know more about the stock bootloader. So far, I&amp;#39;ve not been able to generate a valid update packet, that your nrfutil accepts. I can flash pure hex files using the programmer app in nRF Connect, but I was never able to flash anything into the dongle using nrfutil.&lt;/p&gt;
&lt;p&gt;So I&amp;#39;d like to know a little bit more about the stock bootloader. Is it&amp;#39;s source availabe anywhere? What is it&amp;#39;s default security key? I assume that you must use this key to generate update packages, and that nRF Connect has this key built in?&lt;/p&gt;
&lt;p&gt;So, how do I flash the dongle using nrfutil? A working example would be highly appreciated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Many thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pca10059, replacing stock bootloader with Adafruit UF2, using USB dfua signature. I can generate a zip file with nrfutil, but what key should I use? I tried to use just a private key, and flash that generated packet with nrfutil, but nrfutil crashes wh</title><link>https://devzone.nordicsemi.com/thread/151844?ContentTypeID=1</link><pubDate>Fri, 05 Oct 2018 12:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5da8e026-29ad-4590-85de-c54cf2304bda</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Uhrheber,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that we are not the people who make the Adafruit products or any toolchain software provided by the company.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest you to contact Adafruit to get their support.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I had a quick look at their documentation, it seems that you need to install &lt;a href="https://github.com/adafruit/Adafruit_nRF52_nrfutil"&gt;adafruit-nrfutil&lt;/a&gt;&amp;nbsp;instead of our nrfutil, and it seems that the tool doesn&amp;#39;t require a private key to be provided when creating the .zip file. Most likely it&amp;#39;s a non-secure bootloader.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>