<?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>zephyr : where is task</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74445/zephyr-where-is-task</link><description>I am using NRF52840 development board with SEGGER Embedded Studio (Nordic Edition) 
 I downloaded example code to target board. The software run with Zephry. I found function &amp;quot;k_thread_create&amp;quot; which creates task and other function which renames the task</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Apr 2021 11:26:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74445/zephyr-where-is-task" /><item><title>RE: zephyr : where is task</title><link>https://devzone.nordicsemi.com/thread/306994?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 11:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d847d1cb-4064-409b-ac7c-d8b00c30ca31</guid><dc:creator>orkunsengur</dc:creator><description>&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;I am using NRF-52840dk example that runs&amp;nbsp;CoAP and CLI (command line) with OpenThread.&amp;nbsp;I saw there is just one function that creates a task &amp;quot;&lt;span&gt;k_thread_create&amp;quot;. How can I see other tasks if they exist.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For example; is there a task for CLI?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;There are lots of files so I am confused &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr : where is task</title><link>https://devzone.nordicsemi.com/thread/306983?ContentTypeID=1</link><pubDate>Tue, 27 Apr 2021 11:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3352ef4e-7d3b-40d5-829b-a17a25a3a990</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There is no directory of file created with that name. This name stays inside the Kernel thread handling mechanism. Are you expecting a function/call/file/directory in your project with that name?&lt;/p&gt;
&lt;p&gt;The thread itself is&amp;nbsp;&lt;strong&gt;coap_receive&lt;/strong&gt;&amp;nbsp;which is still in the same file&amp;nbsp;nrf\subsys\net\lib\coap_utils\coap_utils.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr : where is task</title><link>https://devzone.nordicsemi.com/thread/306782?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 11:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34e08530-68bb-4c14-8ae4-2df76c051f1b</guid><dc:creator>orkunsengur</dc:creator><description>&lt;p&gt;My question is that what is the directory or name of file (has .c extension)&amp;nbsp; which includes the created task ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: zephyr : where is task</title><link>https://devzone.nordicsemi.com/thread/306777?ContentTypeID=1</link><pubDate>Mon, 26 Apr 2021 11:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc5562f1-ca8f-456e-ad9c-25eb5352f83d</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user=""]Unfortunately I couldn&amp;#39;t find the task with name &amp;quot;&lt;span&gt;CoAP-sock-recv&amp;quot;. Where is the created task? There are lots of file left side of IDE and I am confused:)&lt;/span&gt;[/quote]
&lt;p&gt;I am a bit confused with your question.&amp;nbsp; Where are you expecting to see the&amp;nbsp;thread&amp;nbsp; names? Do you have an task/thread viewer for debugging or do you want to query the thread name in the code?&lt;/p&gt;
&lt;p&gt;The task is normally accessed with thread handle which in your case seems to be&amp;nbsp;&lt;span&gt;receive_thread_data. You can use &lt;a href="https://docs.zephyrproject.org/apidoc/latest/group__thread__apis_ga63754a7ee6eaa0453450cb724bd80c10.html"&gt;k_thread_name_get&lt;/a&gt;&amp;nbsp;to check that the name is set correctly to the thread handle you provided&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>