<?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 to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28456/how-to-flash-bootloader-to-thingy-52</link><description>I am a newbie for Nordic development boards. I recently bought a thingy 52. When I was searching for how to upload a custom firmware of my own (After disabling few BLE services), I came across this link.
 OTA-DFU - Generating your own packages 
 I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Feb 2018 14:35:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28456/how-to-flash-bootloader-to-thingy-52" /><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/121976?ContentTypeID=1</link><pubDate>Mon, 26 Feb 2018 14:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0ceeada-319d-4bdf-89ed-259c8078866c</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi Giova,&amp;nbsp;you can upload your own custom firmware over the air, once you have generated a new public &amp;amp; private key &amp;amp; installed your own bootloader (&lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_generating.html" rel="noopener noreferrer" target="_blank"&gt;see link&lt;/a&gt;). If you know the Nordic private key, it should work to upload custom FW to a device flashed with bootloader &amp;amp; app signed using the Nordic private key. But since you do not know the Nordic private key, this is most likely the reason you are getting this error. You will unfortunately need a DK or an external Segger J-Link to be able to erase &amp;amp; program the Thingy:52 device the first time with your own bootloader.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/121538?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 14:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:910f8f54-fc62-42f6-9184-3987f1217b21</guid><dc:creator>giova</dc:creator><description>&lt;p&gt;Hi, is it possible to upload your own custom firmware using OTA only(no DK) to a device which is flashed with a bootloader and app signed using the Nordic private key?&lt;/p&gt;
&lt;p&gt;I tried but I always get error INVALID_OBJECT ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112440?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2017 06:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2efc7aa-b938-4ecb-93c5-ff97d720117a</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;strong&gt;Edit: Tip for OTA-DFU of the Nordic Thingy FW (NOT CUSTOM FW!):&lt;/strong&gt; You can also use the Android or iOS Thingy apps for OTA-DFU of Nordic Thingy FW. Using iTunes and an iPhone 5s worked fine for me, but when I used an HTC Android phone, I got a weird error. This should hopefully not be a problem for different Android phones.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112439?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 09:49:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ae81a1-cfc6-43f1-b847-3b2532f18399</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; I think that should be fine to make a zip file from the hex file. You have two options regarding doing an OTA-DFU, but only one option if you want to upload custom FW to the Thingy. Since you have an nrf52840, you can attach a JTAG cable to the P19 debug out port on the top left of the PDK. Then, attach the other end of the JTAG cable to the Thingy JTAG connector located under the cover to the right of the usb connector. Essentially just follow &lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_cable.html"&gt;this guide here&lt;/a&gt;. That is the method I normally use for OTA-DFU &amp;amp; Secure DFU of the Thingy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112438?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 15:36:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7b76af7-9031-4b52-9112-4764c79f788d</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Hey Bjorn, thanks again. That is just the nrf52832_xxaa_s132.hex file generated by Keil?&lt;/p&gt;
&lt;p&gt;EDIT: I used nrfutil to create a *.zip file from the *.hex file from the secure_boot project. Using nRFconnect on my phone I can see the thingy in DFU mode. I tried uploading the *.BIN , *.DAT , *.ZIP file using the dfu button at the top. It starts connecting and than it just disconnects.&lt;/p&gt;
&lt;p&gt;When using nRF connect on my desktop through a DK52 PDK I get the error below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;DFU failed with error: When writing &amp;#39;EXECUTE&amp;#39; command to Control Point Characteristic of DFU Target: Operation code 4 (EXECUTE) failed on DFU Target. Result code 11 (EXTENDED_ERROR) Extended error code 5 (FW_VERSION_FAILURE).
Discovered devices

Start scanClear
Options
-60 dBm
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112437?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 15:30:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4494df4c-a814-44fc-8db5-9acb2424d2bf</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; This was wrong unfortunately. You need to use Secure DFU to upload custom FW to the Thingy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112436?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 15:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bac7527-d7e7-43ac-870f-0458ed21db2d</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Hey Gova &amp;amp; Bjorn, I got my device in DFU by following Daniel Wang advice, but now it does not have the new key compiled into it right ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112435?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2017 03:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0bc5cec-f858-46dc-876f-8e57b10da989</guid><dc:creator>Gova</dc:creator><description>&lt;p&gt;Thanks a ton ! Let me give a try on that and come back.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112434?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2017 06:18:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37c0862e-824f-4008-8d68-3d05adb34944</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;@Daniel Wang I do not think this will work, as Secure DFU is needed to be able to upload custom FW to the Nordic Thingy:52. It is possible to use OTA-DFU with the Nordic Thingy FW (e.g. using the iOS or Android Thingy app) or via an nrf51/52 DK &amp;amp; SWD cable between P19 &amp;amp; the Thingy SWD connector to the right of the USB port on the Thingy:52. An open bootloader option is being considered in the future for custom FW, but currently you have to use secure DFU for this. See my updated answer above for a great blog post to read.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112433?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 17:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a533c762-41a5-4720-801c-2d797b3e1df2</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;I think there is already a bootloader on the Thingy by default. you dont need to flash your own bootloader. Hold the thingy button down, while powering up, and it will go int DFU mode. And you can upload your own firmware(.ZIP) OTA-DFU using Thingy app or nRF-connect app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112432?ContentTypeID=1</link><pubDate>Wed, 13 Sep 2017 17:30:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8998ea7b-cb98-4819-968f-3829f1121498</guid><dc:creator>Gova</dc:creator><description>&lt;p&gt;Thank you so much for your reply. Yes with the attached images, I think i need a nRF DK to program the bootloader.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8625.Capture.JPG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0714.Capture2.JPG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112431?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 05:57:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85a0f8d2-ca4b-469e-b727-95035f0384ae</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Unfortunately, you need a nrf51 og nrf52 DK to be able to flash a bootloader to your Thingy via the nrfGoStudio program. In nrfGoStudio, you can flash the bootloader by clicking on the &amp;quot;Program Bootloader&amp;quot; tab.&lt;/p&gt;
&lt;p&gt;It might be possible to flash the bootloader via the nrf connect app for android and/or iOS by transferring the bootloader to your mobile phone, but I am unsure if this works. Try this first by looking at the &lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_connect.html"&gt;documentation&lt;/a&gt; title &amp;quot;Upgrading with nrfConnect for Mobile&amp;quot;. If that doesn&amp;#39;t work, you&amp;#39;ll unfortunately need an nrf51 or 52 DK to flash the bootloader over to the Thingy. Hope that helps!&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; You can easily do an OTA-DFU by using the Nordic Thingy app if you are trying to update the Nordic Thingy FW for example. Sorry that I didn&amp;#39;t think about this earlier. Connect to the Thingy, press on Device Firmware Update &amp;amp; go over to the Custom tab. There, you can press the &amp;quot;How to...&amp;quot; button &amp;amp; it will show you how to add files using itunes (if you are using iOS) or from an e-mail for example.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 2:&lt;/strong&gt; If you are using custom firmware, you need to do secure DFU. You can take a look at &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;this fantastic blog post&lt;/a&gt; to help you get started!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112430?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 12:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81aaafe8-167a-40a6-8f30-e45dccd0b35c</guid><dc:creator>Gova</dc:creator><description>&lt;p&gt;No I don&amp;#39;t have one. I have only a thingy board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash bootloader to thingy 52?</title><link>https://devzone.nordicsemi.com/thread/112429?ContentTypeID=1</link><pubDate>Mon, 11 Sep 2017 12:34:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9cbd80b-d2b0-48df-9b2d-f78a9824fbdd</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Do you have an nrf52 development kit?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>