<?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>Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58984/debug-thread-examples-with-nrf52840-dongle</link><description>Hello, 
 I&amp;#39;m using CLI USB examble from Thread and Zigbee SDK by Nordic. I am using nRF52840 Dongle along with a J-link EDU mini. 
 My problem is that, when I start debugging by clicking the &amp;quot;Play&amp;quot; icon, the debugger does not stop at the first instruction</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Nov 2020 14:06:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58984/debug-thread-examples-with-nrf52840-dongle" /><item><title>RE: Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/279289?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 14:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88c742dc-5985-464c-8e82-4ca76de7b46d</guid><dc:creator>kalpino</dc:creator><description>&lt;p&gt;SOLVED: My problem was in the flash_management file of the project. The flash region dedicated to openthread was wrong. I found it was different from one of the example projects of the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/244323?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 06:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:340f36ad-7693-4240-9721-ea7f6017120d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, you need to generate and flash the bootloader settings page to inform the bootloader that a valid application exists. The setting of the&amp;nbsp;&lt;span&gt;BANK_VALID_APP flag&amp;nbsp;approach was used with the old legacy bootloader (before SDK v12 and Thread SDK).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="kalpino"]One question is: what is the cottect bootloader to use when using SDK for Thread?[/quote]
&lt;p&gt;&amp;nbsp;All variants are based on the same bootloader, but may have different transport layers and configuration settings. E.g., the bootloader that support DFU over thread is configured to allow DFU handling in the application. Follow the&amp;nbsp;&lt;a title="Thread Secure DFU protocol" href="https://infocenter.nordicsemi.com/topic/sdk_tz_v4.0.0/thread_ot_secure_dfu.html?cp=7_3_2_8"&gt;Thread Secure DFU protocol&lt;/a&gt;&amp;nbsp;documentation if you want DFU over Thread, else you can&amp;nbsp;take a look at the other&amp;nbsp;&lt;a title="DFU bootloader examples" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/examples_bootloader.html?cp=7_1_4_4"&gt;DFU bootloader examples&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/244084?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 13:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95090226-03f0-4575-ab70-c4fec6f0ca40</guid><dc:creator>kalpino</dc:creator><description>&lt;p&gt;I successfully flashed the new bootloader using J-link. Still, once I have flashed my app and the softdevice, the program remains stuck in the bootloader.&lt;/p&gt;
&lt;p&gt;One question is: what is the cottect bootloader to use when using SDK for Thread? And what is the&amp;nbsp;&lt;span style="background-color:#ffffff;"&gt;bootloader-version&lt;/span&gt; to use when creating the bootloader settings with nrfutil?&lt;/p&gt;
&lt;p&gt;Also, I read something about setting BANK_VALID_APP = 0x01 in the bootloader using a specific hex file but the one I found changes flash line 0x3FC00 which is not part of the bootloader..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/243910?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 13:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3a8bd16-bcb8-47e2-b983-0191be0b2d1c</guid><dc:creator>Vidar Berg</dc:creator><description>[quote user="kalpino"]When I try to flash the resulting hex I get the error.[/quote]
&lt;p&gt;&amp;nbsp;The error is reported from the existing bootloader when the Programmer app is trying to initiate DFU through the dongle&amp;#39;s USB interface. Have you tried to flash it through the SWD interface with your J-link? &lt;/p&gt;
&lt;p&gt;If you haven&amp;#39;t seen it already, I recommend taking a look at this excellent tutorial on programming the 52840 dongle: &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;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/243893?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 12:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebfdc091-a5f8-45b4-9872-ccaf0772c5a6</guid><dc:creator>kalpino</dc:creator><description>&lt;p&gt;Here&amp;#39;s what I did.&lt;/p&gt;
&lt;p&gt;Since I&amp;#39;m using SDK for Thread and Zigbee I used a new bootloader (not sure if it&amp;#39;s the right one): SDK folder/examples/dfu/pca10056_s140_ble. I chose the s140 since my application is using dynamic multiprotocol.&lt;/p&gt;
&lt;p&gt;I replaced the dfu_public_key.c with the one I previously generated.&lt;/p&gt;
&lt;p&gt;I also replaced the board define to BOARD_PCA_10059 since I&amp;#39;m using dongles.&lt;/p&gt;
&lt;p&gt;I rebuilt the project and merged the hex file with my bootloader settings hex file.&lt;/p&gt;
&lt;p&gt;When I try to flash the resulting hex I get the error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/243873?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 11:11:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7c54571-a734-417c-b1a0-0fcf546e03a7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The update was rejected because it was not signed with your private key. Bootloader updates must always be signed even if you use the open bootloader. Have you generated your own key pair as explained in the blog post?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/243847?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 09:43:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83c89980-7d52-4de1-b285-33a03d253ff4</guid><dc:creator>kalpino</dc:creator><description>&lt;p&gt;I created a new hex file for the bootloader settings. I then merge this file with the bootloader found on the Nordic website (attached here).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I use nRF Connect to download the new bootloader hex file to the nRF52840 dongle I get an error saying the bootloader is not signed:&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#f2dede;color:#a94442;float:none;font-family:Roboto;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:nowrap;"&gt;DFU failed: Error message for known extended error code from DFU target: The init packet does not contain a signature. This bootloader requires DFU updates to be signed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What does it mean?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3704.pca10059_5F00_bootloader.zip"&gt;devzone.nordicsemi.com/.../3704.pca10059_5F00_bootloader.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debug Thread Examples with nRF52840 Dongle</title><link>https://devzone.nordicsemi.com/thread/239547?ContentTypeID=1</link><pubDate>Thu, 12 Mar 2020 13:41:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cc3c581-fa02-499c-80b9-b3127a8fe9c0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Which bootloader is this? Most likely you will have to create a settings page with nrfutil to manually mark the application as valid for the bootloader. The bootloader will stay in DFU mode otherwise. Hung explains this in a bit more detail in this blog post (see appendix 1 at the end)&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>