<?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>DFU project</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50036/dfu-project</link><description>I try to create coap server project and it should by updateable by DFU. I merge project simple coap server and thread dfu client, and I keep instructions in documentation to build it and run DFU. But Server doesnt response to coap requests and when I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Feb 2020 06:57:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50036/dfu-project" /><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/235057?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 06:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59fd2b26-3ef0-46ef-8715-2a4be9369429</guid><dc:creator>František</dc:creator><description>&lt;p&gt;&lt;span&gt;I solved it, thank you.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/234989?ContentTypeID=1</link><pubDate>Tue, 18 Feb 2020 15:46:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df6d179f-3eb5-452e-9ef8-0e55e115f4bc</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fran,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see why this should not be possible. Could you send your code to see how you have implemented this so far?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/232129?ContentTypeID=1</link><pubDate>Fri, 31 Jan 2020 15:38:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56e64d82-1678-48e7-929b-1f210c244078</guid><dc:creator>František</dc:creator><description>&lt;p&gt;it possible add to this dfu project coap client too? Now there is only coap server. I try add coap client but I have problems with communication. On the other site I dont get message.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/216784?ContentTypeID=1</link><pubDate>Fri, 25 Oct 2019 09:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2213a8c-f9b3-4785-b232-8df4a579f958</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fran,&lt;/p&gt;
&lt;p&gt;You should be able to run a debugger on the application itself as with any other project. But looking at the log output it seems that the settings in flash could be corrupted somehow. You can take a look at the memory layout &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.2.0%2Fthread_ot_secure_dfu.html&amp;amp;cp=5_3_2_8_2&amp;amp;anchor=thread_ot_secure_dfu_memory"&gt;here&lt;/a&gt;, the dfu settings (bootloader settings) are stored near the end. You should check your linker file and adjust your RAM and flash settings &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;accordingly&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/216114?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 10:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f2c408b-9ed5-49fc-a0a4-609daf5e04a5</guid><dc:creator>František</dc:creator><description>&lt;p&gt;After wtite my code DFU wont start. There is log from flashing DFU:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Address not specified. Using ff03::1 (all Thread nodes)
Using connectivity board at serial port: COM12
Flashing connectivity firmware...
Connectivity firmware flashed.
Waiting for NCP to promote to a router...
Thread DFU server is running... Press &amp;lt;Ctrl + D&amp;gt; to stop.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And there is stoped.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;There is log from RTT Viewer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;state=DFU_DOWNLOAD_INIT_CMD&amp;#160;event=DFU_EVENT_PROCESSING_ERROR
00&amp;gt; 
&amp;lt;00&amp;gt; error&amp;gt;&amp;#160;background_dfu:&amp;#160;Processing&amp;#160;error&amp;#160;while&amp;#160;downloading&amp;#160;init&amp;#160;command.
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;Current&amp;#160;DFU&amp;#160;Diag&amp;#160;version:&amp;#160;Oct&amp;#160;22&amp;#160;2019&amp;#160;10:11:58,&amp;#160;0xC808AC73
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;COAP_DFU:&amp;#160;DFU&amp;#160;trigger&amp;#160;request&amp;#160;received
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;DFU&amp;#160;trigger:&amp;#160;init&amp;#160;(sz=140,&amp;#160;crc=2A5AA774)&amp;#160;image&amp;#160;(sz=363752,&amp;#160;crc=F26E4F73)
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;state=DFU_DOWNLOAD_TRIG&amp;#160;event=DFU_EVENT_TRANSFER_COMPLETE
00&amp;gt; 
&amp;lt;00&amp;gt; warning&amp;gt;&amp;#160;background_dfu:&amp;#160;Installed&amp;#160;image&amp;#160;CRC&amp;#160;is&amp;#160;different
00&amp;gt; 
&amp;lt;00&amp;gt; warning&amp;gt;&amp;#160;nrf_dfu_settings:&amp;#160;Settings&amp;#160;write&amp;#160;aborted&amp;#160;since&amp;#160;it&amp;#160;tries&amp;#160;writing&amp;#160;to&amp;#160;forbidden&amp;#160;settings.
00&amp;gt; 
&amp;lt;00&amp;gt; error&amp;gt;&amp;#160;background_dfu:&amp;#160;Init&amp;#160;commad&amp;#160;has&amp;#160;changed
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;Init&amp;#160;complete.&amp;#160;Unicast&amp;#160;Mode.
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;state=DFU_DOWNLOAD_INIT_CMD&amp;#160;event=DFU_EVENT_TRANSFER_CONTINUE
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;COAP_DFU:&amp;#160;Requesting&amp;#160;[i]&amp;#160;(block:0&amp;#160;mid:25575)
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;Storing&amp;#160;block&amp;#160;(b:0&amp;#160;c:0).
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;state=DFU_DOWNLOAD_INIT_CMD&amp;#160;event=DFU_EVENT_TRANSFER_CONTINUE
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;COAP_DFU:&amp;#160;Requesting&amp;#160;[i]&amp;#160;(block:1&amp;#160;mid:25576)
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;Storing&amp;#160;block&amp;#160;(b:1&amp;#160;c:1).
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;state=DFU_DOWNLOAD_INIT_CMD&amp;#160;event=DFU_EVENT_TRANSFER_CONTINUE
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;COAP_DFU:&amp;#160;Requesting&amp;#160;[i]&amp;#160;(block:2&amp;#160;mid:25577)
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;Storing&amp;#160;block&amp;#160;(b:2&amp;#160;c:2).
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;nrf_dfu_validation:&amp;#160;Signature&amp;#160;required.&amp;#160;Checking&amp;#160;signature.
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;nrf_dfu_validation:&amp;#160;Calculating&amp;#160;hash&amp;#160;(len:&amp;#160;63)
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;nrf_dfu_validation:&amp;#160;Verify&amp;#160;signature
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;nrf_dfu_validation:&amp;#160;Image&amp;#160;verified
00&amp;gt; 
&amp;lt;00&amp;gt; warning&amp;gt;&amp;#160;nrf_dfu_settings:&amp;#160;Settings&amp;#160;write&amp;#160;aborted&amp;#160;since&amp;#160;it&amp;#160;tries&amp;#160;writing&amp;#160;to&amp;#160;forbidden&amp;#160;settings.
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;state=DFU_DOWNLOAD_INIT_CMD&amp;#160;event=DFU_EVENT_PROCESSING_ERROR
00&amp;gt; 
&amp;lt;00&amp;gt; error&amp;gt;&amp;#160;background_dfu:&amp;#160;Processing&amp;#160;error&amp;#160;while&amp;#160;downloading&amp;#160;init&amp;#160;command.
00&amp;gt; 
&amp;lt;00&amp;gt; info&amp;gt;&amp;#160;background_dfu:&amp;#160;Current&amp;#160;DFU&amp;#160;Diag&amp;#160;version:&amp;#160;Oct&amp;#160;22&amp;#160;2019&amp;#160;10:11:58,&amp;#160;0xC808AC73
00&amp;gt; &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/214977?ContentTypeID=1</link><pubDate>Tue, 15 Oct 2019 08:01:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6089f1b7-2915-4a15-a1f4-c2dc1d39c4c1</guid><dc:creator>František</dc:creator><description>&lt;p&gt;Is exist any option how to debug dfu client project?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/214622?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2019 13:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff45ee8f-a4d1-4d26-a6a5-986e91cee95d</guid><dc:creator>František</dc:creator><description>&lt;p&gt;Thank you, it works.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/214145?ContentTypeID=1</link><pubDate>Wed, 09 Oct 2019 11:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72f3d8c7-b173-4bf6-9246-162b86209a30</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fran,&lt;/p&gt;
&lt;p&gt;Sorry for the late answer here, I was on vacation. I have taken a closer look at the thread coap dfu example and the iot coap library. The coap dfu example already runs a coap server along coap client and the resources are registered in the endpoints_init function in coap_dfu.c.&lt;/p&gt;
&lt;p&gt;Using the &amp;#39;coap_resource_create&amp;#39; and &amp;#39;coap_resource_child_add&amp;#39; APIs it should be possible to register custom resources. The endpoints_init function in coap_dfu.c can be extended to add the extra resources you need.&lt;/p&gt;
&lt;p&gt;From what I see in your code you were on the right track but I think you forgot to call &amp;#39;coap_resource_child_add&amp;#39;.&lt;/p&gt;
&lt;p&gt;Keep in mind that usually one wants to avoid modifying the nordic libraries in the SDK, so directly modifying coap_dfu.c isn&amp;#39;t the best approach... but since we can only have one instance of CoAP with IoT CoAP implementation we need to share some resources (i.e. the resource root), so what you could do is to add a function to the CoAP DFU API (coap_dfu.c) allowing to optain a pointer to the root resource of the current CoAP instance. This will allow you to add resources directly from your main application, minimizing CoAP DFU interference and keeping the design as neat as possible.&lt;/p&gt;
&lt;p&gt;To help you on the way I have modified the coap_dfu example to include a light resource so I can test the coap dfu example using the simple_coap_client example commands for on/off (BSP_BUTTON_1). I used the iot coap server example in nRF5_SDK/examples/iot/coap/ipv6/server as a reference.&lt;/p&gt;
&lt;p&gt;(Note: I didn&amp;#39;t implement pairing and toggle, which are also included in the original simple coap server/client example, so my example only supports messages send by BSP_BUTTON_1 on the simple coap client(light cmd on/off), nothing will happen when pressing BPS_BUTTON_0 or BPS_BUTTON_2).&lt;/p&gt;
&lt;p&gt;In coap_dfu.c add the following function:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;coap_resource_t * get_resources_root(void){
	return &amp;amp;(m_coap_dfu_ctx.root); 
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And also add it in coap_dfu.h:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;coap_resource_t * get_resources_root(void);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then in main.c you can add any number of resources after coap_dfu_init have been called, and add them to the root resource using the function above. See the attached main.c file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-a1229acd738b42808ee0e7316750cdc2/main.c"&gt;devzone.nordicsemi.com/.../main.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can then test the application using simple_coap_client to toggle LED4 on and off, and change LED 2 on/off when performing DFU with another board.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/212232?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 09:57:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df1cd439-53b8-400b-b3ab-cadb1d6fd697</guid><dc:creator>František</dc:creator><description>&lt;p&gt;now it write this output:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Traceback (most recent call last):&lt;br /&gt; File &amp;quot;C:\Python27\lib\site-packages\nrfutil-4.0.0-py2.7.egg\nordicsemi\thread\tncp.py&amp;quot;, line 130, in _wpan_receive&lt;br /&gt; receiver.receive(payload, src, dst)&lt;br /&gt; File &amp;quot;build\bdist.win-amd64\egg\piccata\core.py&amp;quot;, line 541, in receive&lt;br /&gt; self._message_layer.receive(data, remote, local)&lt;br /&gt; File &amp;quot;build\bdist.win-amd64\egg\piccata\core.py&amp;quot;, line 206, in receive&lt;br /&gt; self._transaction_layer.receive_message(message, remote, local)&lt;br /&gt; File &amp;quot;build\bdist.win-amd64\egg\piccata\core.py&amp;quot;, line 428, in receive_message&lt;br /&gt; self._process_response(message)&lt;br /&gt; File &amp;quot;build\bdist.win-amd64\egg\piccata\core.py&amp;quot;, line 359, in _process_response&lt;br /&gt; self._finish_transaction(response.token, remote, RESULT_SUCCESS, response)&lt;br /&gt; File &amp;quot;build\bdist.win-amd64\egg\piccata\core.py&amp;quot;, line 305, in _finish_transaction&lt;br /&gt; self._handle_app_callback(callback, result, request, response)&lt;br /&gt; File &amp;quot;build\bdist.win-amd64\egg\piccata\core.py&amp;quot;, line 274, in _handle_app_callback&lt;br /&gt; cb(result, request, response, *args, **kw)&lt;br /&gt; File &amp;quot;C:\Python27\lib\site-packages\nrfutil-4.0.0-py2.7.egg\nordicsemi\thread\dfu_server.py&amp;quot;, line 217, in _handle_trigger_response&lt;br /&gt; assert (result == piccata.constants.RESULT_TIMEOUT)&lt;br /&gt;AssertionError&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/212087?ContentTypeID=1</link><pubDate>Thu, 26 Sep 2019 13:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc3e74b-05ff-46d9-a25a-a94b7e507202</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fran,&lt;/p&gt;
&lt;p&gt;I am so sorry but I am going out on vacation so I will not be able to review your code before the 7th of October. Sorry for the inconvenience and thanks for your patience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/211569?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 13:45:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cb25467-ed09-48a2-b41e-26cb68cfcc8d</guid><dc:creator>František</dc:creator><description>&lt;p&gt;I use&amp;nbsp;nRF5_SDK_for_Thread_and_Zigbee_v3.2.0_9fade31&lt;/p&gt;
&lt;p&gt;I try example to DFU thread client and I add turn on LED. DFU was sucessfull. Next I add CoAP resources to code and it not start.&lt;/p&gt;
&lt;p&gt;This is terminal output:&lt;/p&gt;
&lt;p&gt;D:\IS\nRF5_SDK_for_Thread_and_Zigbee_v3.2.0_9fade31\examples\thread\dfu&amp;gt;nrfutil dfu thread -f -pkg app_dfu_package.zip -p COM12 --channel 11 --panid 43981&lt;br /&gt;Address not specified. Using ff03::1 (all Thread nodes)&lt;br /&gt;Using connectivity board at serial port: COM12&lt;br /&gt;Flashing connectivity firmware...&lt;br /&gt;Connectivity firmware flashed.&lt;br /&gt;Waiting for NCP to promote to a router...&lt;br /&gt;Thread DFU server is running... Press &amp;lt;Ctrl + D&amp;gt; to stop.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;edited file: coap_dfu.c&lt;/p&gt;
&lt;p&gt;added code:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define MY_APP_RESOURCE_HELLO &amp;quot;hello&amp;quot;
coap_resource_t coap_resource_hello;

#define MY_APP_RESOURCE_READ &amp;quot;read&amp;quot;
coap_resource_t coap_resource_read;

#define MY_APP_RESOURCE_WRITE &amp;quot;write&amp;quot;
coap_resource_t coap_resource_write;

static void hello_request_callback(coap_resource_t * p_resource, coap_message_t * p_request)
{
NRF_LOG_INFO(&amp;quot;Hello packet&amp;quot;);

coap_message_t * p_response = NULL;

if (!is_addr_multicast(&amp;amp;p_request-&amp;gt;local))
{
p_response = empty_reset_response_create(p_request);
}

// Send response, if created.
if (p_response != NULL)
{
coap_dfu_message_send(p_response);
}

}

static void read_request_callback(coap_resource_t * p_resource, coap_message_t * p_request)
{
NRF_LOG_INFO(&amp;quot;Read packet&amp;quot;);

coap_message_t * p_response = NULL;

if (!is_addr_multicast(&amp;amp;p_request-&amp;gt;local))
{
p_response = empty_reset_response_create(p_request);
}

// Send response, if created.
if (p_response != NULL)
{
coap_dfu_message_send(p_response);
}

}

static void write_request_callback(coap_resource_t * p_resource, coap_message_t * p_request)
{
NRF_LOG_INFO(&amp;quot;Write packet&amp;quot;);

coap_message_t * p_response = NULL;

if (!is_addr_multicast(&amp;amp;p_request-&amp;gt;local))
{
p_response = empty_reset_response_create(p_request);
}

// Send response, if created.
if (p_response != NULL)
{
coap_dfu_message_send(p_response);
}

}


static uint32_t MyAppCoapResource_init()
{
    uint32_t err_code = NRF_SUCCESS;
    
    do
    {
        err_code = coap_resource_create(&amp;amp;coap_resource_hello, MY_APP_RESOURCE_HELLO);
        err_code = coap_resource_create(&amp;amp;coap_resource_read, MY_APP_RESOURCE_READ);
        err_code = coap_resource_create(&amp;amp;coap_resource_write, MY_APP_RESOURCE_WRITE);
        if (err_code != NRF_SUCCESS)
        {
            break;
        }

        coap_resource_hello.permission = (COAP_PERM_POST | COAP_PERM_GET);
        coap_resource_hello.callback = hello_request_callback;

        coap_resource_read.permission = (COAP_PERM_POST | COAP_PERM_GET);
        coap_resource_read.callback = read_request_callback;

        coap_resource_write.permission = (COAP_PERM_POST | COAP_PERM_GET);
        coap_resource_write.callback = write_request_callback;

        NRF_LOG_INFO(&amp;quot;Endpoints initialized&amp;quot;);

    } while (0);

    return err_code;
}

//upgrade this existing function

uint32_t coap_dfu_init(const void * p_context)
{
    uint32_t err_code;

    do
    {
        memset(&amp;amp;m_coap_dfu_ctx, 0 , sizeof(m_coap_dfu_ctx));

        err_code = coap_protocol_init(p_context);
        if (err_code != NRF_SUCCESS)
        {
            break;
        }

        err_code = MyAppCoapResource_init();
        if (err_code != NRF_SUCCESS)
        {
            break;
        }

        err_code = endpoints_init(&amp;amp;m_coap_dfu_ctx);
        if (err_code != NRF_SUCCESS)
        {
            break;
        }

        nrf_dfu_settings_init(false);
        nrf_dfu_req_handler_init(dfu_observer);

        background_dfu_state_init(&amp;amp;m_dfu_ctx);

        app_timer_create(&amp;amp;m_send_timer, APP_TIMER_MODE_SINGLE_SHOT, delayed_send_handler);
        app_timer_create(&amp;amp;m_reset_timer, APP_TIMER_MODE_SINGLE_SHOT, delayed_reset_handler);
        app_timer_create(&amp;amp;m_coap_delayed_error_handling_timer, APP_TIMER_MODE_SINGLE_SHOT, coap_delayed_error_handler);

        APP_SCHED_INIT(SCHED_EVENT_DATA_SIZE, SCHED_QUEUE_SIZE);
    } while (0);

    return err_code;
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/208118?ContentTypeID=1</link><pubDate>Thu, 05 Sep 2019 07:53:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8b0a0e2-dd05-44de-a11f-c4b0746e4e85</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fran,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the buildt-in OpenThread coap library, the external coap library (the one used by the thread DFU client) is this one: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.iotsdk.v0.9.0%2Flib_iot_coap.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.iotsdk.v0.9.0%2Flib_iot_coap.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/207933?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 12:03:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d4a55d0-30ec-443c-937d-121b271d1987</guid><dc:creator>František</dc:creator><description>&lt;p&gt;If I understand it, I should use coap library which is used in DFU project?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/207848?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 09:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:957cee4e-1f5a-4129-bcde-e5c8784d298a</guid><dc:creator>František</dc:creator><description>&lt;p&gt;We wanna use it for thousands devices an update firmware without DFU will not possible.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/207817?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 08:23:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b7b1843-2960-4834-8ada-51f92f38a58b</guid><dc:creator>František</dc:creator><description>&lt;p&gt;This is coap library which is best to use?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.1.0%2Fgroup__api-coap-group.html&amp;amp;cp=5_3_5_0_0_6_3"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.1.0%2Fgroup__api-coap-group.html&amp;amp;cp=5_3_5_0_0_6_3&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/207811?ContentTypeID=1</link><pubDate>Wed, 04 Sep 2019 07:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f927a5f7-95fb-4f2e-a839-ad009a6f4662</guid><dc:creator>František</dc:creator><description>&lt;p&gt;And what is external coap library?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/207463?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 15:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e79a7666-2779-4f86-9e20-eac0a60b1554</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Fran,&lt;/p&gt;
&lt;p&gt;Such an approach will have two CoAP implementations running at the same time which is not a good practice, it would be better to have a single one handling all communications, have a single port for all CoAP traffic and then based on the resource URI handle messages properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/207310?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 08:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c25e4bce-37b2-43c4-8345-958f0dffcd4f</guid><dc:creator>František</dc:creator><description>&lt;p&gt;And if I use another port for coap server it will be ok?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/206695?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 15:26:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfed41b7-da1e-438b-83db-f31d915d4740</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Frantisek,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I have discuss the issue with a collegue of mine working in the Thread team. We don&amp;#39;t think these two examples can run in parallel.&lt;/p&gt;
&lt;p&gt;What is happening now is that enabling the built-in CoAP (from the OpenThread library) results in it getting all CoAP traffic, so the DFU packets are not handled by the second CoAP implementation, since the built-in CoAP binds to a specific port, so both DFU_UDP_PORT and OT_DEFAULT_COAP_PORT are defined as the same port.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define OT_DEFAULT_COAP_PORT 5683 ///&amp;lt; Default CoAP port, as specified in RFC 7252&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The OpenThread built-in CoAP is much simpler an limited than the external used in the DFU, therefore our recommendation is not enabling the OT CoAP, and rather build your server application using the external CoAP.&lt;/p&gt;
&lt;p&gt;When using the external CoAP library you can create a separate resource with coap_resource_create(), it takes a callback and a resource name, which is the URI path. The examples in nRF5_SDK/examples/iot/coap/ipv6/client and server could be used as a reference.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/203758?ContentTypeID=1</link><pubDate>Tue, 13 Aug 2019 08:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c31ab3-ed90-4cae-86bf-9c49b81bcca7</guid><dc:creator>František</dc:creator><description>&lt;p&gt;Thanks! I am looking forward to your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/202490?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 18:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aea1961-9333-484b-87f1-592ab4962cb5</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Frantisek,&lt;/p&gt;
&lt;p&gt;Sorry for the delay with this case but I will need to consult with our Thread developers to see how to best implement this functionality. The Thread DFU client example is using another CoAP library (from the IoT SDK) and I am not sure what is the best way to merge these two examples.&lt;/p&gt;
&lt;p&gt;The project works fine when thread_coap_init() is not called so my guess is that something is being initialized twice or in the wrong way when using the two coap libraries simultaneously.&lt;/p&gt;
&lt;p&gt;For reference:&lt;/p&gt;
&lt;p&gt;CoAP library used in Thread DFU coap client: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.1.0%2Fgroup__api-coap-group.html&amp;amp;cp=5_3_5_0_0_6_3"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_tz_v3.1.0%2Fgroup__api-coap-group.html&amp;amp;cp=5_3_5_0_0_6_3&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;CoAP library used in simple_coap_server example: &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.iotsdk.v0.9.0%2Flib_iot_coap.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.iotsdk.v0.9.0%2Flib_iot_coap.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I will update you when I have more information.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Marjeris&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/201325?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 14:58:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e884dc8-74b7-4404-9b49-a3c1064e06bb</guid><dc:creator>František</dc:creator><description>&lt;p&gt;i thning i edit any files out of directory. please use this sdk&amp;nbsp;&lt;a href="https://drive.google.com/open?id=1AuShaHKZaZVPQ6bmCRN7kgRvGazwLOfD"&gt;https://drive.google.com/open?id=1AuShaHKZaZVPQ6bmCRN7kgRvGazwLOfD&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/201230?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 12:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cacf44b4-ab6e-48de-8233-6ec8194f6ce3</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Could you check that you have attached all the files needed to build the project? I am not able to build dfu_client_coap_server using Makefile located under dfu_client_coap_server/pca10056/blank/armgcc/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/201203?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 10:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fce76db3-eb6e-4b7b-a463-228cd5313a63</guid><dc:creator>František</dc:creator><description>&lt;p&gt;I used&amp;nbsp;nRF5_SDK_for_Thread_and_Zigbee_v3.1.0. this project which I send is from directory SDK/exapmles/thread . You may use armgcc makefile&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU project</title><link>https://devzone.nordicsemi.com/thread/201202?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2019 10:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:589792a3-2e1c-4a8d-99dd-8e6d767a4bab</guid><dc:creator>Marjeris Romero</dc:creator><description>&lt;p&gt;Hi Frantisek,&lt;/p&gt;
&lt;p&gt;Which version of the Thread &amp;amp; Zigbee SDK did you use to run the project? And in which path did you place your project folder? I am having some troubles building dfu_client_coap_server with the Makefile provided.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>