Good day to you again.
Still working on TMDSEVM6670L, using mcsdk_2_01_02_06 and ndk_2_24_01_18.
The problem occurs, when i'm trying to make an difficult and huge task to response.
The "global" part in main.c:
static HANDLE hTask=0; static void NetworkOpen() { // Create our local servers hTask = DaemonNew(SOCK_DGRAM, 0, 5000, dtask_check_task, OS_TASKPRINORM, OS_TASKSTKNORM, 0, 1 ); }
The "working part" in check_task.c:
#include "ti/platform/platform.h" #include "ti/platform/resource_mgr.h" #include <cerrno> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "C:\ti\pdk_C6670_1_1_2_6\packages\ti\platform\platform.h" #include "C:\ti\pdk_C6670_1_1_2_6\packages\ti\platform\resource_mgr.h" #include <ti/ndk/inc/netmain.h> #define start_address 0x80000000 #define length 0x10000000 #define end_address start_address+length int dtask_check_task( SOCKET s, UINT32 unused ) //5000 порт { /* some variables for working, etc.*/ to.tv_sec = 3; to.tv_usec = 0; setsockopt( s, SOL_SOCKET, SO_SNDTIMEO, &to, sizeof( to ) ); setsockopt( s, SOL_SOCKET, SO_RCVTIMEO, &to, sizeof( to ) ); for(;;) { tmp = sizeof( sin1 ); i = (int)recvncfrom( s, (void **)&pBuf, 0, (PSA)&sin1, &tmp, &hBuffer ); if ( i >= 0 ) // if there's no recieve error - do { /* huge task over here, i can send the whole project if you prefer*/ sendto(s, "DDR3 test PASSED!", 16, 0,(PSA)&sin1, sizeof(sin1) ); sendto(s, 0, 0, 0,(PSA)&sin1, sizeof(sin1) ); platform_write("DDR3 test passed!\n"); recvncfree( hBuffer ); } else {break;} return(1); } }
The problem occurs, when i'm reaching the "sendto" directives. They are "skipping" but not executing, i'm not sending back the data. When i'm deleting the huge and difficult task, only the last "sendto" directive is executing. I'm confused about the process, because in the previous projects it was working correctly. Maybe the problem is in the memory configuration? (In this project it is working in the internal memory, while not using the DDR). Or, if it is not the memory issue, what is the problem? I'll be waiting for your response, thank you.