This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/PROCESSOR-SDK-AM437X: about NDK task/thread priority

Part Number: PROCESSOR-SDK-AM437X


Tool/software: TI-RTOS

in the cfg file:

What is the specific value about the netSchedulerPri NC_PRIORITY_LOW? I guess it is 3, is it correct?

does the netSchedulerPri and the netThreadPri correspond to the priority of running the part of the protocol stack separately?

the kernTaskPriLevel ,Does it correspond to some part of the actual running protocol stack?

  • Hi,

    You can search the NDK source code for netSchedulerPri NC_PRIORITY_LOW:

    #define NC_PRIORITY_LOW OS_SCHEDULER_LOWPRI
    #define OS_SCHEDULER_LOWPRI (_oscfg.TaskPriLow-1)

    typedef struct _osenvcfg {
    uint DbgPrintLevel; /* Debug msg print threshhold */
    uint DbgAbortLevel; /* Debug msg sys abort theshhold */
    int TaskPriLow; /* Lowest priority for stack task */
    int TaskPriNorm; /* Normal priority for stack task */
    int TaskPriHigh; /* High priority for stack task */
    int TaskPriKern; /* Kernel-level priority (highest) */
    int TaskStkLow; /* Minimum stack size */
    int TaskStkNorm; /* Normal stack size */
    int TaskStkHigh; /* Stack size for high volume tasks */
    int TaskStkBoot; /* Stack size for NS_BootTask */
    } OSENVCFG;

    /* Configuration */
    OSENVCFG _oscfg = { DEF_DBG_PRINT_LEVEL, DEF_DBG_ABORT_LEVEL,
    OS_TASKPRILOW_DEF, OS_TASKPRINORM_DEF,
    OS_TASKPRIHIGH_DEF, OS_TASKPRIKERN_DEF,
    OS_TASKSTKLOW_DEF, OS_TASKSTKNORM_DEF,
    OS_TASKSTKHIGH_DEF, OS_TASKSTKBOOT_DEF};
    /*

    #define OS_TASKPRILOW_DEF 3

    So, NC_PRIORITY_LOW is 2, not 3.

    For the setting/usage of tsk/kernel priority, please check the TI Network Developer's Kit (NDK) v2.25 User's Guide. Section 3.1.2: 3.1.2 Global Scheduling Configuration

    Regards, Eric
  • Hi Eric,

    I still have a question: is the ndkThreadPri the priority used by the network initialization configuration task in the ndk initialization phase?

  • Hi Zhuangbin,

    ndkThreadPri is the priority used to create the Task thread which runs the functino "ti_ndk_config_Global_stackThread()".

    Is this the function you are referring to when you say "network initialization configuration task in the ndk initialization"?

    Steve
  • Can I mark this as resolved?

    Todd
  • Yes, it is over.