<?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>thingy52 (&amp;amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27213/thingy52-nrf52840-writing-my-own-software</link><description>Hey Nordic Devzone, 
 I am really new to Nordic and am still a student in embedded software engineering. So first some background information. 
 I have 6x nRF52840 and 5x Thingy52. My goal is to create a mesh network using 5 thingy52&amp;#39;s connected to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Nov 2017 12:53:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27213/thingy52-nrf52840-writing-my-own-software" /><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107321?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 12:53:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:415ed7a8-319b-4d59-bd61-ba3d956ed9a8</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Bjørn explained this perfectly, I was a bit short in my answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107322?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 12:38:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e02f6673-7366-4d80-a560-c3796c26afbb</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Just to comment, ToasTer86 used an SWD cable to connect his nrf52840dk to the Nordic Thingy via the JTAG connector on the Thingy:52 to the right of the USB charging port. For those that want to upload their own FW to the Thingy:52, you have to use &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;Secure DFU as explained in this blogpost&lt;/a&gt;. For just updating the &lt;a href="https://www.nordicsemi.com/eng/nordic/Products/Nordic-Thingy-52/Thingy-52-DFU-complete-zip/61954"&gt;Thingy FW written by Nordic Semi&lt;/a&gt;, you can either flash the Nordic Thingy:52 FW using an nrf51/52 dk with a SWD cable or via the Thingy app found on the Google Play store or Apple App Store. Just go to the Device Firmware Update Tab, click on the &amp;quot;custom FW&amp;quot; tab &amp;amp;upload your custom FW. If you need help uploading the FW zip file to your smartphone, press the &amp;quot;How To...&amp;quot; button.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107320?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 12:07:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b37d083-92eb-4dff-afa9-148879953063</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Hey Bjorn using a cable I was able to do a DFU.
THanks a lot for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107311?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 11:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86597f8e-ac5f-44a7-9c02-c81c8b6bd6b1</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Hi ToasTer86. What&amp;#39;s the status of this issue? Have you managed to get secure dfu to work to flash your custom zip file to the Thingy:52?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107319?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2017 06:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:740202d0-061f-44c0-a52f-a775818977a3</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;I will talk to my boss and mention that a SWD (&lt;strong&gt;edit: not JTAG&lt;/strong&gt;) cable should be included in the purchase of the Thingy:52.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; Seems like a good idea for those people that want to upload custom FW to their Thingy:52s. The only issue I can think of is that most people most likely won&amp;#39;t upload custom FW to their Thingy:52s. They will most likely keep the standard Nordic FW, use the Thingy app &amp;amp; maybe use IFTT.&lt;/p&gt;
&lt;p&gt;Concerning your idea with the 5 Thingy:52s and an nrf52840 with a mesh network, this should definitely be possible. You can take a look &lt;a href="https://www.youtube.com/watch?v=uPByM8SdTE8"&gt;at this video&lt;/a&gt; (in Japanese I believe ) :). It shows a couple of Thingy&amp;#39;s being controlled by one Android Nexus tablet. So what you are suggesting shouldn&amp;#39;t be a problem at all. Also, having a network of multiple nrf52840 PDKs using thread shouldn&amp;#39;t be a problem either. :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107318?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 16:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f748d188-5e3c-42bd-9c4e-f1c37672eb2f</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Was able to get a cable from the electronics department, was able to flash my boot_loader onto the unit know using the direct connection with a nRF52840-PDK. I also compiled the code in the project\pca20020_s132. With my own bootloader the Thingy52 just hangs in the DFU mode.&lt;/p&gt;
&lt;p&gt;Seems this &lt;a href="https://devzone.nordicsemi.com/question/152730/problems-with-compiling-thingy-bootloader/"&gt;topic&lt;/a&gt; is about the same problem so I asked a question there to.&lt;/p&gt;
&lt;p&gt;Because the cable is allowing me to flash and at least compile&amp;amp;upload the base code to the thingy52 I will start studying the mesh capabilities on the Thingy52. Although at this moment reading the library seems everything is BLE(4) with gap, gatt. Not the bluetooth 5 structure.&lt;/p&gt;
&lt;p&gt;Can someone from Nordic tell me if the idea/project idea I had is even really remotely possible with the hardware I have now (6x nRF52840 PDK &amp;amp; 5x Thingy52) but most importantly with the software that is available for the thingy52 and the nRF52840.
The idea I am referring to is: Mesh network of 5x Thingy52 &amp;amp; 1x nRF52840-PDK as host. Another network of multiple nRF52840-PDK using thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107317?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 10:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37b19836-731b-49b4-9678-afe55ee8ebec</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Trying to verify if my bootloader I compiled using the Thingy52 SDK is correct. So following the guides on the &lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_generating.html#dfu_bootloader_settings"&gt;thingy52 website&lt;/a&gt; which refers me to the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fnrfutil%2Fnrfutil_settings_generate_display.html"&gt;nrfutil&lt;/a&gt; guide&lt;/p&gt;
&lt;p&gt;If I try to tun the command specified there to check my boot_loader specifics:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt; nrfutil settings display nrf52832_xxaa_s132.hex
Failed to parse .hex file: Bad access at 0xFF000: not enough data to read 4 contiguous bytes
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Starting to feel a bit helpless with these Thingy52&amp;#39;s. No where it is specified while buying these I would need a specific development cable, nor is it delivered with the 5 units that were purchased.&lt;/p&gt;
&lt;p&gt;Cant I just use the bootloader that is present on the thingy52 and write my own application? I just want to connect them in a Mesh Network with the nRF52840 and share the sensor data.&lt;/p&gt;
&lt;p&gt;Thanks in advance for any help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107316?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 10:30:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb25cfb9-e87d-4d1c-9250-78d0429a6f2b</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Using the thingy app my boot_loader also does not get loaded correctly. I think it has to do with that error I am getting when using nRFconnect on my desktop.  Although I am not getting any feedback or error code from the thingy app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107315?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 09:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b79689d-7a07-4c69-97d0-a42b6d316b89</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;I have a Android, is it possible to upload a boot_loader package using the Thingy App. Because I cant see the device in DFU mode when using the thingy app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107314?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 09:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3ac76d8-1caa-4350-80e6-261e3ab3a4ef</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;Like I mentioned above, I would either get a cable or try it using the Nordic Thingy app? Do you have an iPhone or are you using an Android phone? I have not tried OTA-DFU using the nrf connect app yet, so I would need to look into that a bit more. But try one of the other two methods I posted first. :)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; What I have posted previously is wrong, as you need to do Secure DFU in order to flash a custom FW onto the Nordic Thingy. For OTA-DFU of the Nordic Thingy FW, it is possible to either go via nrf51/52 dk/SWD (&lt;strong&gt;edit: not JTAG&lt;/strong&gt;) cable or via the Thingy app for Android or iOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107313?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 09:49:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cf422d3-4218-4d9e-8a4a-3b6f3c03b022</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Hey thanks a lot for your response, I will try switching to SES although I do not see a SES project for the bootloader project (thingy_sdk_v2.1.0\project\bootloader_secure).&lt;/p&gt;
&lt;p&gt;So right now I have compiled the bootloader project with my own created public key. I also used nrfutil to create a distripackage from it. So I have *.hex file, *.zip file. If I unzip the *zip I also have *.bin &amp;amp; *.dat file&lt;/p&gt;
&lt;p&gt;I tried using nRFconenct yesterday on my desktop, I can see the Thingy52 in DFU mode and can connect to it using a nRF52840. But I get the following error when uploading the boot_loader project:&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;p&gt;When using my android phone with nRFconnect I can also see the Thingy52 in DFU mode. When using the DFU button at the top right I get a menu with 4 choices :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Distribution packet
Soft Device
Bootloader
Application
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;When using option 1 Distribution packet the following happens: &amp;quot;initializing, starting DFU, disconnection&amp;quot; no feedback of success or failure.&lt;/p&gt;
&lt;p&gt;When using option 3 Bootloader, I do not get the option to select my *.zip file. It just does not see *.zip files on my android file explorer. So what I did was I extracted the zip file to get the *.bin &amp;amp; *.dat file.
So I choose the *.bin file. Then I get some message that the *.dat packet file should contain: &amp;quot; revision, application version, list of supported softdevices etc. &amp;quot;. I choose the *.dat. Same happens as before: &amp;quot;initializing, starting DFU, disconnection&amp;quot;.&lt;/p&gt;
&lt;p&gt;So I tried 2 different ways of uploading it through nRFconnect but can&amp;#39;t seem to get it working. Will try getting a cable in the meantime. Unless you have some tips or tricks for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107312?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2017 08:24:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:534f30a3-7f55-462c-a1b3-2a4d720d7cce</guid><dc:creator>Bj&amp;#248;rn Kvaale</dc:creator><description>&lt;p&gt;First off, thanks for the kind words! I will mention to Sigurd that you have been pleased with the support you got from us. :)&lt;/p&gt;
&lt;p&gt;If I were you, I would use Segger Embedded Studio (SES) instead of Keil from SDK 14 and onwards, as Keil is expensive and has the code limit that you mention (if you do not get the license). Not sure if you heard the news, but you can obtain a &lt;a href="https://www.segger.com/news/segger-embedded-studio-ide-now-free-for-nordic-sdk-users/"&gt;license for SES for free&lt;/a&gt;. You mentioned that the Thingy SDK does not have a folder labelled SES, so it works fine to use Keil.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; Got a tip from a colleague here at Nordic: it seems what I said previously was not correct. Over the air DFU of custom FW can only be done if a key is generated first. Then you can compile the bootloader with your own generated key &amp;amp; flash the bootloader with an external debugger. Only then can you sign the custom FW with your own defined key &amp;amp; OTA DFU custom FW. It should be possible to use an open bootloader in the future sometime, but for now Nordic uses secure DFU in the Thingy:52. Here&amp;#39;s a &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;fantastic blog post&lt;/a&gt; that should be able to get you started!&lt;/p&gt;
&lt;p&gt;When it comes to starting with secure DFU, you can do this via the SWD (&lt;strong&gt;edit: not JTAG&lt;/strong&gt;) debug cable (attach your nrf52840 to usb, attach a SWD (&lt;strong&gt;edit: not JTAG&lt;/strong&gt;) cable from the P19 port on the nrf52840 to the SWD (&lt;strong&gt;edit: not JTAG&lt;/strong&gt;) connector on the Thingy).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107310?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 16:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b4217cc-4158-460e-b94f-766b80fe9f7e</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;well I am working with nRF connect to try and work with the Thingy52. got a *.zip bootloader project that I am trying to transfer to the Thingy52. Seems I am not the only one. Posting on that other question : &lt;a href="https://devzone.nordicsemi.com/question/167579/how-to-flash-bootloader-to-thingy-52/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Think I will just get myself one of those debug cables.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107309?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 15:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3192fcf-ebdb-44ba-be07-61eabd641de5</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;I am now at the step of generating a DFU on this website: &lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_generating.html"&gt;nordicsemiconductor.github.io/.../dfu_generating.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I generated the key, and got this to compile in the bootloader_secure project.&lt;/p&gt;
&lt;p&gt;At the part of :&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; Generating the bootloader

To generate a new bootloader, compile the Bootloader project using either Keil μVision or GCC. Flash the compiled bootloader onto Thingy. Remember to flash the SoftDevice as well for the OTA-DFU to function properly.
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I am not quite sure how to flash the Thingy, if I am not able to connect it through USB.&lt;/p&gt;
&lt;p&gt;EDIT: reading this post &lt;a href="https://devzone.nordicsemi.com/question/167579/how-to-flash-bootloader-to-thingy-52/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; I found out that I dont need to flash a bootloader. If I just hold the button while powering on the Thingy It fires up in DFU. Confused though now if my new key I generated is needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: thingy52 (&amp;nRF52840) writing my own software</title><link>https://devzone.nordicsemi.com/thread/107308?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 12:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30fa3d68-76ee-4d3f-903d-6dbf5c9a1be6</guid><dc:creator>ToasTer86</dc:creator><description>&lt;p&gt;Well as most of my posts I will keep this section up to date;
I now actually just found this : &lt;a href="https://nordicsemiconductor.github.io/Nordic-Thingy52-FW/documentation/dfu_connect.html"&gt;nordicsemiconductor.github.io/.../dfu_connect.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It says there should be a FE59 section where I should type in 01. But I do not see this FE59 section.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>