This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

zephyr : where is task

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 "k_thread_create" which creates task and other function which renames the task.

k_thread_name_set(&receive_thread_data, "CoAP-sock-recv");

Unfortunately I couldn't find the task with name "CoAP-sock-recv". Where is the created task? There are lots of file left side of IDE and I am confused:)

 

 

Parents
  • Unfortunately I couldn't find the task with name "CoAP-sock-recv". Where is the created task? There are lots of file left side of IDE and I am confused:)

    I am a bit confused with your question.  Where are you expecting to see the thread  names? Do you have an task/thread viewer for debugging or do you want to query the thread name in the code?

    The task is normally accessed with thread handle which in your case seems to be receive_thread_data. You can use k_thread_name_get to check that the name is set correctly to the thread handle you provided

Reply
  • Unfortunately I couldn't find the task with name "CoAP-sock-recv". Where is the created task? There are lots of file left side of IDE and I am confused:)

    I am a bit confused with your question.  Where are you expecting to see the thread  names? Do you have an task/thread viewer for debugging or do you want to query the thread name in the code?

    The task is normally accessed with thread handle which in your case seems to be receive_thread_data. You can use k_thread_name_get to check that the name is set correctly to the thread handle you provided

Children
Related