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.

TI8168 can't run when add hook for DSP-core

hello!

 Now, I add task_hook's switchFxn to monitor DSP-core, and I meet 2 questions:

1,when I add another string for have next task-name, and it's local variable, the system can't run, but strint is global variable system can run some times;

2,when I used hook, system run only a few mins, and if I not use hook, system run all the time.

3, when the system can't run, I use cmd of top in ARM, I find the system only one task switch, and other task same exit or blocking.

 I will wait your reply!

  • Hi Yuzhuou,

    what version of SYS/BIOS and XDCtools are you using?

    yuzhou wang said:
    when I add another string for have next task-name, and it's local variable, the system can't run, but strint is global variable system can run some times;

    I'm not sure what you asking here. What string are you referring to? A task switch hook only provides two Task_Handles (previous and next task).

    yuzhou wang said:

    2,when I used hook, system run only a few mins, and if I not use hook, system run all the time.

    3, when the system can't run, I use cmd of top in ARM, I find the system only one task switch, and other task same exit or blocking.

    I'm not sure what "cmd of top in ARM" is. Have you tried using ROV? It can show you what your tasks are blocked on or if any hardware exceptions have occurred.

  • Hi Tom:
    The version of SYS/BIOS and XDCtools are bios_6_33_05_46 and xdctools_3_23_03_53.
    A task switch hook provides two Task_Handles, and I can used Task_Handle_name(Task_Handles) get task name, but I can only get one. If I want use another String for next task name, the String must as global variable.
    When I find system can't run, I use telnet login in, and use cmd of top to see.

    Thanks,

    Yuzhou Wang