Hello
i am currently running a program that is analysing sound input, already with three tasks of the same priority level, that are forced to switch via a periodical function that calls yield() .
Now i would like to implement a simple network-functionality using only the dsp-side of the OMAP-L137 TMS320C6747.
i reduced the NDK-example called "client" ( NDK version 2_0_0_0 ) to only perform the deamon_tcp_echo - Server and within the client-project this works fine.
But implementing the server, the Stack-test-procedure (as a 4th thread, starting the actual deamon-server) into the existing project results in various failures.
Wether the yield()-function does not run the audio-task (quiet the same like in the Audio example of PSP 1_20) anymore, or the task itself does not perform what he is supposed to, if the Network-task is added. The failure in fact is, that the audio-task does not perform anymore, while the other 2 pre-existing tasks take action as they are supposed. So, adding the network-task does prevent my program from executing properly, and the network can also not be accessed.
After uploading the program a secound time, while executing it the following Pop-Up-Message occures
Can't Run Target CPU:
Error 0x00000024/-1060
Error during: Register, Execution,
An unknown error prevented the emulator from accessing the processor
in a timely fashion.
It is recommended to RESET EMULATOR. This will disconnect each
target from the emulator. The targets should then be power cycled
without starting the deamon-Server with the following commands, everything is executed properly..
(..)
do
{
rc = NC_NetStart( hCfg, NetworkOpen, NetworkClose, NetworkIPAddr );
} while( rc > 0 );
and
static void NetworkOpen()
{
hEcho = DaemonNew( SOCK_STREAMNC, 0, 7, dtask_tcp_echo,
OS_TASKPRINORM, OS_TASKSTKNORM, 0, 3 );
}
the dtask_tcp_echo has not been modified and matches the given task in the NDK example
could someone tell me how to implement such a network functionality properly ?
best regards Rico