<?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 Thingy 52 with custom firmware on osx</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30147/how-to-flash-thingy-52-with-custom-firmware-on-osx</link><description>Hi, 
 I&amp;#39;ve just got my hands on this amazing little thing call Thingy 52. I have played around with the default app but now I&amp;#39;m struggling with flashing a custom firmware. 
 So far I manage to perform the following steps: 
 
 Downloaded Thingy 52 SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Feb 2018 13:15:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30147/how-to-flash-thingy-52-with-custom-firmware-on-osx" /><item><title>RE: How to flash Thingy 52 with custom firmware on osx</title><link>https://devzone.nordicsemi.com/thread/120572?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 13:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:816e9e62-b739-4059-8aa6-63ac6ca75243</guid><dc:creator>Kristian Sylwander</dc:creator><description>&lt;p&gt;I&amp;#39;ve actually did all the steps you&amp;nbsp;mentioned apart from the order. I flashed the bootloader first followed by the softdevice (as the docs said). Now when i flashed the softdevice first followed by the bootloader I get a flashing green light.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash Thingy 52 with custom firmware on osx</title><link>https://devzone.nordicsemi.com/thread/120562?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 12:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64d10e9b-e960-4b87-9f80-2ea4d1033186</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Kristian,&lt;/p&gt;
&lt;p&gt;You need to install a bootloader to the Thingy first. It is not included in the Softdevice. You have created your own private and public key, right?&lt;/p&gt;
&lt;p&gt;I have not done this with the Thingy before, but I think it&amp;nbsp;works quite similar to the regular bootloader examples.&lt;/p&gt;
&lt;p&gt;Please check &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader" rel="noopener noreferrer" target="_blank"&gt;this blog post&lt;/a&gt; written by Nordic on bootloaders.&lt;/p&gt;
&lt;p&gt;I assume that you have installed &amp;quot;nrfutil&amp;quot;, since you have a private key (which you use to generate your package).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;What you need to do, as it says in the blog, is to exchange dfu_public_key.c with your own public key. The key that you use here should mach your private key (which is also explained in the blog post). After you have flashed the softdevice, flash the bootloader located in Thingy_SDK\project\bootloader_secure\pca20020\arm5_no_packs\secure_dfu_ble_s132_pca20020 (if you use Keil) after you have changed the public key, and compiled.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After this, power cycle your Thingy:52, and it should blink green. Then you can find it with nRF Connect, and upload the DFU package that you generated with your private key.&lt;/p&gt;
&lt;p&gt;I actually tested it just now, and the thingy bootloader: bootloader_secure works just as the one referred to in the blog post.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash Thingy 52 with custom firmware on osx</title><link>https://devzone.nordicsemi.com/thread/120557?ContentTypeID=1</link><pubDate>Mon, 12 Feb 2018 11:56:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6423f58-8e84-4f29-a050-8d60afdf61be</guid><dc:creator>Kristian Sylwander</dc:creator><description>&lt;p&gt;Hello Edvin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve manage using a SWD cable&amp;nbsp;along with a nRF52 DK to flash the bootloader using your suggestions. Next step (according to the docs) is to flash the soft device. I downloaded S132 v4.0.2 and flash that onto the board using:&lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;&lt;span class="s1"&gt;nrfjprog --program s132_nrf52_4.0.2_softdevice.hex -f nrf52 --chiperase&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s1"&gt;I&amp;#39;ve also manage to create a DFU package using:&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;strong&gt;&lt;span class="s1"&gt;nrfutil&lt;/span&gt;&lt;span class="s2"&gt; pkg generate --application nrf52832_xxaa_s132.hex --application-version 0 --hw-version 52 --sd-req 0x98 --key-file private-key.pem myApp.zip&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s2"&gt;However when trying to perform an OTA-DFU using nRFConnect on a mobile I can&amp;#39;t find the Thingy device while scanning. Is the bootloader really flashed? Do I need to create bootloader settings and flash them as well?&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s2"&gt;Thanks in advance.&lt;/span&gt;&lt;/p&gt;
&lt;p class="p1"&gt;&lt;span class="s2"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash Thingy 52 with custom firmware on osx</title><link>https://devzone.nordicsemi.com/thread/119729?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 11:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05d3f535-b13b-47a2-a59c-186b8f8194cd</guid><dc:creator>Kristian Sylwander</dc:creator><description>&lt;p&gt;I do have a nRF52 DK chip. I will buy a SWD cable and try that right away. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to flash Thingy 52 with custom firmware on osx</title><link>https://devzone.nordicsemi.com/thread/119686?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 09:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b69eb84-4ee5-48ba-842d-444ca29dace0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Kristian,&lt;/p&gt;
&lt;p&gt;The Thingy52 does not have a programming chip. Do you have an external programmer? An nRF5x DK would also work.&lt;/p&gt;
&lt;p&gt;You will need to use the P9 connector on the thingy as described in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/22838/how-to-program-thingy-52-using-nrf52-dk" rel="noopener noreferrer" target="_blank"&gt;this case&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You can use the command line tools. If you type &amp;quot;nrfjprog -h&amp;quot; you will see a list of&amp;nbsp; all commands. Typically, you would want to erase your Thingy52 first, by writing &amp;quot;nrfjprog -e&amp;quot;. Depending on your command line tools version, you might have to add the nRF family like this: &amp;quot;nrfjprog -f NRF52 -e&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Program your thingy using the following command:&lt;/p&gt;
&lt;p&gt;&amp;quot;nrfjprog --program [path to .hex file] --verify&amp;quot;&lt;/p&gt;
&lt;p&gt;Once you have programmed the bootloader you can use nRF Connect to upload your applications.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>