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.

Task priority

Hi,

I have a project with several tasks:

NDK low level : priority 5

NDK normal : 7

NDK High : 9

NDK kernel : 11

All other tasks are prioity 2, 3 or 4.

My FATSD task has priority 2

However : if I read/write from/to a file (from a SDcard), my network hangs during the file operation. I don't understand why, since the NDK priority level is higher than the FATSD task.

  • Hello,

    NDK uses device specific NSP for ethernet driver which may have own receive and transmit tasks. Did you check what is priority of those tasks?

    Also you can check in the ROV when FILE IO is happening if these tasks are in ready state.

  • Hi,

    NDK stack has several threats of its own with differing priorities.NDK stackthread will always have highes priority and most of the time it is in running state.

    You might want to check the status(Blocked/Running/Ready) of tasks like NDK Rx/NDK Tx tasks while you are doing file operation in ROV.

    Network may hang because of other reasons apart from task priroty.Complete log or ROV view can help in debugging that.

    Regards

    Mayank

  • Of course, stupid of me: the send and receive tasks had priority 2, so the same priority as the SD task. That explained!

    Thanks!