<?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>Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66715/openthread-with-freertos</link><description>Hi! I&amp;#39;ve successfully set op an OpenThread MQTT broker using a Rasperry Pi and nrf52 dongle and I am able to publish and subscribe to and from my computer by flashing the mqttsn_client_subscriber and mqttsn_client_publisher examples to my nrf52840 DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Oct 2020 09:59:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66715/openthread-with-freertos" /><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/277559?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 09:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c65e55cb-b9db-4082-9053-fcd7d53f6f3a</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void thread_stack_task(void * arg)
{
    UNUSED_PARAMETER(arg);
    mqttsn_init();
    uint32_t err_code = mqttsn_client_search_gateway(&amp;amp;m_client, SEARCH_GATEWAY_TIMEOUT);
    if (err_code != NRF_SUCCESS)
    {
        NRF_LOG_INFO(&amp;quot;SEARCH GATEWAY message could not be sent. Error: 0x%x\r\n&amp;quot;, err_code);
    }else{
        NRF_LOG_INFO(&amp;quot;Search gateway message sendt&amp;quot;);
    }

    while (1)
    {
        NRF_LOG_INFO(&amp;quot;in loop&amp;quot;);
        
        thread_process();
        app_sched_execute();
        if (NRF_LOG_PROCESS() == false)
        {
            thread_sleep();
        }

        UNUSED_VARIABLE(ulTaskNotifyTake(pdTRUE, portMAX_DELAY));
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the reply!&amp;nbsp;&lt;br /&gt;Moving the mqttsn_init() function and code for connecting the gateway into the task, i.e. running it after the vTaskStartScheduler(), fixed the problem and the program works! I found moving the thread_instance_init() function to the task caused the program to crash.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;So now everything seems to work!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/277174?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 14:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aff08eb-1131-4d8b-9b7b-3e70e1aa5f0b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We believe the issue is that your function calls are using a lot of timers, which are not supposed to be called until you have kickstarted the FreeRTOS itself using&amp;nbsp;vTaskStartScheduler().&lt;/p&gt;
&lt;p&gt;Basically, you can&amp;#39;t use any of this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    thread_instance_init();
    mqttsn_init();
    
    /* Connect to gateway */ 
    uint32_t err_code = mqttsn_client_search_gateway(&amp;amp;m_client, SEARCH_GATEWAY_TIMEOUT);
    if (err_code != NRF_SUCCESS)
    {
        NRF_LOG_INFO(&amp;quot;SEARCH GATEWAY message could not be sent. Error: 0x%x\r\n&amp;quot;, err_code);
    }else{
        NRF_LOG_INFO(&amp;quot;Search gateway message sendt&amp;quot;);
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;before you call vTaskStartScheduler(). Please note that the vTaskStartScheduler does not return, so you need to add these parts e.g. within your openthread task.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Without being able to pin point exactly what caused the Hardfault it was definitely a timing related issue. The reason it worked in SES was probably due to optimization. When I compiled the DEBUG variant of the project, it hardfaulted, just like your armgcc project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know exactly what it should look like, but look at the unmodified freertos_coap_server example, and do only one change at the time. If it stops working, then look into why it doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Are you sure you really need FreeRTOS anyway?&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><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/277129?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 12:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40dd92de-dfc1-4f56-af3e-d5405437aab3</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;Any updates?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;One thing i noticed, when trying to run the working project&amp;nbsp;&lt;span&gt;without FreeRTOS&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;in the project directory of the&amp;nbsp;&lt;span&gt;&lt;/span&gt;FreeRTOS program (modified coap server), and with the FreeRTOS makefile, the program would not run with the FreeRTOS makefile, despite not using any FreeRTOS functionality.&lt;/p&gt;
&lt;p&gt;I did not get a hardfault error, but other than that the program responded as the FreeRTOS program, not receiving any MQTT-events. However when i tried removing the FreeRTOS-files from the makefile, just from the SRC_FILES as shown below the program works.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;The right file is the working makefile.&lt;br /&gt;&lt;img alt=" " height="166" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1603801135127v1.png" width="526" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The program flow. First running the makefile on the left, then running the makefile on the right.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="268" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1603801157631v3.png" width="546" /&gt;&lt;br /&gt;&lt;br /&gt;It seems that just including the FreeRTOS source files, without including or using them in the main-file,in the project causes the MQTT-events to stop responding.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/276755?ContentTypeID=1</link><pubDate>Sun, 25 Oct 2020 19:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38b81578-153e-40cc-8fc8-6f050cb90f50</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;Ok! I see.&lt;br /&gt;Keep me posted if your college or you find a solution. Hopefully we can make it work.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;-Asgeir.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/276621?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2020 12:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ad2048-80b0-4f53-a8cb-7c523827f4f1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I experimented a bit more. It seems like you receive a hardfault, but I am not yet sure why. Please check the attached project:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5460.freertos_5F00_coap_5F00_server_5F00_2.zip"&gt;devzone.nordicsemi.com/.../5460.freertos_5F00_coap_5F00_server_5F00_2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Put it in the same location as your current project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, open hardfault_implementation.c and modify the function HardFault_process() to look like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/*lint -save -e14 */
__WEAK void HardFault_process(HardFault_stack_t * p_stack)
{
    // Restart the system by default
    //NVIC_SystemReset();
    while (true)
    {
        NRF_LOG_PROCESS();
    }
}
/*lint -restore */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And monitor the RTT log.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have to ask a colleague of mine, but he is not in today. I&amp;#39;ll check with him, hopefully in the beginning of next week.&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><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/276196?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 12:47:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb629e47-927d-45d1-81e6-e660148757a6</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;I only tested the armgcc solution with make. Should i install SES and try the SES file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/276166?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 11:50:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38e320e4-1739-4a0a-8185-d4ec6445f37c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Did you test the SES (segger embedded Studio) project that I attatched in the previous reply? Does it behave the same there?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/276107?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 08:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f9ec613-2b63-4dc0-a40b-06297703c162</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;It behaves the same. The LED only blinks once. When i remove the call to mqttsn_client_search_gateway(), the blinking tasks works as expected.&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1602759801319v2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/275640?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 13:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdb98be2-c4a1-4019-bd42-5235c98dcc87</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Yes. It was probably what it said earlier as well, but I guess it wasn&amp;#39;t an error:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3542.pastedimage1603109930369v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, I am currently working from home, and can&amp;#39;t monitor the LEDs, because the DK is connected in my work computer in the office, so I added the line:&lt;/p&gt;
&lt;p&gt;NRF_LOG_INFO(&amp;quot;led task&amp;quot;); right before toggling the led in the while loop.&lt;/p&gt;
&lt;p&gt;I saw that it was only printed once, and I wanted to debug, so I had to port the segger project that you provided. However, running that, I see that it is printed regularly (LED1_BLINK_INTERVAL).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you try the attached project (unzip in the same location as you had your project) and check if it behaves the same, or if the LED keeps blinking in your case?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6281.freertos_5F00_coap_5F00_server.zip"&gt;devzone.nordicsemi.com/.../6281.freertos_5F00_coap_5F00_server.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/275566?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 10:45:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ee8d3f1-afff-442d-a102-a32a67154447</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;The projects are explained in the readme. The &amp;quot;freertos_coap_server&amp;quot; is the freertos openthread mqtt program.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I am able to compile it in an unmodified SDK2.0.0. I tried downloading a new SDK now and tested it. I copied the files from the github repo into SDK/examples-folder. I used VS code to modify the code, but to compile it i ran the makefile in pca/10056/blank/armgcc using a terminal. You can see where i placed the project files in the picture. Does this not work for you?&lt;br /&gt;&lt;br /&gt;Kind regards, Asgeir.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1603104269903v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/275522?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2020 08:51:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f622970f-3569-44c4-ad2d-72732cb1335f</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I saw that repo, but which of the projects is it? And what IDE did you use to set up the project? I tried the freertos_coap_server\pca10056\blank\ses and armgcc, but none of them compiled in an unmodified SDK2.0.0. Where should I place the project file, and what IDE do you use? Please make sure that it compiles in an unmodified SDK.&lt;/p&gt;
&lt;p&gt;SDK2.0.0 is a bit old, so you can consider to move to SDK4.1.0, but we can look into it in the SDK2.0.0 first.&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><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/275416?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 15:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24936b24-d6b4-4193-99b0-fbc91f99766e</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;I uploaded it to github,&amp;nbsp; &lt;a href="https://github.com/hunshamar/freertos_openthread"&gt;https://github.com/hunshamar/freertos_openthread&lt;/a&gt;, which can also be downloaded as a zip. But do you want the full SDK folder with the project zipped?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;-Asgeir&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/275374?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 13:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62608402-0e8c-4dfa-b900-43831859e95a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok. Thank you for checking. Can you please zip your project (preferably the one that also toggles the led, which also freezes) here, so that I can try to recreate it on my DK.&lt;/p&gt;
&lt;p&gt;&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: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/275042?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 11:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8651bc59-13f4-4bb7-a06e-00527eaf3aef</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;I gave this a try, but unfortunately it did not work. I even tried a brand new nrf52 dongle.&lt;br /&gt;The problem seems to be with the FreeRTOS program. I tried adding another task that only toggles an LED on the board, and this one freezes as well. The problem seems to be with the mqqtsn_client_search_gateway() function that is run at the start of the program.&lt;/p&gt;
&lt;p&gt;&lt;img height="68" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1602759801319v2.png" width="283" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;When i exclude this piece of code at least the led blinking tasks runs normally. But if I run this function the program seems to halt.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Also if I just comment out all the &lt;span&gt;FreeRTOS&amp;nbsp;&lt;/span&gt;-stuff and run the openthread-task as a while-loop it works. So there seems to be some conflict with FreeRTOS and the mqtt event handler or something similar.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/274676?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 13:31:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfb0f274-0a2a-4973-ac78-d075638c4ca8</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Then what will happen if the RPi broker already have network data on the DK, that it assumes that the DK also has? Then the DK starts up without any stored network data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please give it a go. It is a matter of uploading the hex file from my earlier reply, and re-flashing it. Then let me know if it still behaves the same.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/274633?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 12:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3bd10d4-70cf-492d-a531-d018f7fdf924</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;The dongle is connected to the MQTT broker, yes. But this works without any problem, the problem is not in the RPi broker. When running the openthread project on nrf52840 DK without freertos everything works.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The problem is when i try to implement FreeRTOS in the thread project on the development kit that I&amp;#39;m trying to connect to the thread network running on the RPi.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The code i attached to a previous comment explaining the problem,&amp;nbsp;&lt;a href="https://github.com/hunshamar/freertos_openthread"&gt;https://github.com/hunshamar/freertos_openthread&lt;/a&gt;,&amp;nbsp; I have two openthread programs that I can flash to the development kit, one using FreeRTOS which is not working, and one not using FreeRTOS that is working with openthread.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/274628?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 12:19:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fed8e41f-8359-4439-9b45-16d8f3e45cb8</guid><dc:creator>Edvin</dc:creator><description>[quote user=""]using a Rasperry Pi and nrf52 dongle[/quote]
&lt;p&gt;&amp;nbsp;But you have an nRF52 dongle connected to your RPi? Can you try to erase this one?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/274554?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 09:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ee1ab4-37bf-487d-8256-9aa4886e718d</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;I&amp;#39;m using the nrf52840 DK for developing, not the dongle.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For erasing the flash i ran the &amp;quot;make erase&amp;quot; command from the makefile.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I tried flashing the hex file using nrf connect, but it made no difference either.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/274491?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 07:44:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e6eadf8-0df5-40db-a50a-23211ae493ab</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;How did you erase the dongle&amp;#39;s flash?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you haven&amp;#39;t tested it, can you please try the hex file found in Jørgen&amp;#39;s answer from &lt;a href="https://devzone.nordicsemi.com/support-private/support/251146#permalink=568907"&gt;this post&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;The hex file found in flasherase_nrf52840_dongle_sdk16\flasherase\hex\flasherase_pca10059.hex will erase the flash for you if you flash it from nRF Connect for Desktop.&lt;/p&gt;
&lt;p&gt;Then you can program it with the correct FW again after that.&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><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/274141?ContentTypeID=1</link><pubDate>Sat, 10 Oct 2020 11:56:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:831d20e4-8d28-4c3d-8cbe-ba3c068622d4</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;This did not make any difference, unfortunately.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/273846?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 15:48:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90cb106f-ee9f-4bbf-b010-c6b699fb5900</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Please make sure that you erase the flash on all devices completely before you flash them with a modified example. Perhaps there were some old network data in the flash on one of the devices?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/273749?ContentTypeID=1</link><pubDate>Thu, 08 Oct 2020 12:37:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1746a5a-1cb9-40f8-88eb-d46038a7f140</guid><dc:creator>Asgeir</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi!&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I&amp;#39;ve tried this unsuccessfully.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;I modified the mqttsn_client_subscriber example some, making it connect to the broker and subscribe to topic automatically, not using the buttons.&lt;br /&gt;This solution works well.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;img height="243" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1602160416172v1.png" width="294" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;However when i try to implement the same solution in FreeRTOS, using the freertos_coap_server as a reference, it doesn&amp;#39;t work. The program does not connect to the gateway etc.&amp;nbsp;&lt;br /&gt;&lt;img height="89" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1602160452926v2.png" width="297" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;There seems to be an issue with running the mqttsn_evt_handler, perhaps this is related to using the app_scheduler in the program? I am not sure, but the events are not triggered.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Here is my code:&amp;nbsp;&lt;a href="https://github.com/hunshamar/freertos_openthread"&gt;https://github.com/hunshamar/freertos_openthread&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Do you have any suggestions for making this work? I am not too experienced with FreeRTOS or the nordic SDK, so any help would be appreciated.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;-Asgeir&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Openthread with FreeRTOS</title><link>https://devzone.nordicsemi.com/thread/273245?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 13:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4db4c4ce-44a4-49f4-bb1d-e64a363bf79d</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There is one example that uses the openthread stack and FreeRTOS:&lt;/p&gt;
&lt;p&gt;SDK_for_Thread_and_Zigbee_4.1.0\examples\thread\freertos_coap_server&lt;/p&gt;
&lt;p&gt;Perhaps you can use this example for reference.&lt;/p&gt;
&lt;p&gt;&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></channel></rss>