Other Parts Discussed in Thread: SYSBIOS
Tool/software: TI-RTOS
Hello,
Does anyone know how to configure Task_hooks.length in SYSBIOS. In my application it is set to 1 (verfied by printing the value), but I need to make it a bigger value.
Jakub
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.
Tool/software: TI-RTOS
Hello,
Does anyone know how to configure Task_hooks.length in SYSBIOS. In my application it is set to 1 (verfied by printing the value), but I need to make it a bigger value.
Jakub
Hi Todd,
This is not what I need. I am using the TI's NDK on Jacinto 6 SoC. The socket layer requires that the functions:
NDK_hookInit(ndkHookId);
NDK_hookCreate(TaskSelf());
are called before sockets can be used.
The NDK_hookCreate() function is:
void NDK_hookCreate(Task_Handle h)
{
hookOK = 1;
if( hookId != 0xffffffff ) {
Task_setHookContext(h, (Int)hookId, 0);
/* open the file descriptor session automatically (if configured to) */
ti_ndk_config_global_taskCreateHook(h);
}
}
And hookId is set first by calling NDK_hookInit().
I need a free slot for in task hook contexts, to store NDK specific context, not task hook functions.
Is there a way to achieve this?
In debug variant of my application I get crashes when I call NDK_hookCreate(). The crash does not happen when I comment out this call or use a release variant.
Thanks,
Jakub