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.

### XDC ASSERT - ERROR CALLBACK START ###



I am trying to implement hough transformation on Alpha Adas Board, and I deleted whole code, just left the dynamic allocation of memory using calloc and the program still has no memory. SDK version is VISION_SDK_02_12_01_00.

int **acc = NULL;
acc = (int **)calloc(thh, sizeof(int *)); 
for(i = 0; i<thh; i++)
    {   
        acc[i] = (int *)calloc(tw, sizeof(int));
    }
    //code for dynamic allocation, thh is int value of 1390, and tw is 180.
for(i = 0; i<thh; i++)
    {
        free(acc[i]);
    }
    free(acc);
    **acc=NULL;
//code for freeing memory
I am running Alg_Preprocessor on eve1 and edge detection on eve2 before Hough algorithm. Both Alg_Preprocessor and edge detection came implemented so I didnt wrote them. Everything is running on IPU1_0. I found mem segment file where I can manually add or substract memory for every processor and I set it like this:

EVE1_VECS_SIZE = 0.5*MB;
EVE1_CODE_SIZE = 2*MB;
EVE1_DATA_SIZE =13.5*MB;
EVE2_VECS_SIZE = 0.5*MB;
EVE2_CODE_SIZE = 2*MB;
EVE2_DATA_SIZE =13.5*MB;
EVE3_VECS_SIZE = 0.5*MB;
EVE3_CODE_SIZE = 2*MB;
EVE3_DATA_SIZE =0.5*MB;
EVE4_VECS_SIZE = 0.5*MB;
EVE4_CODE_SIZE = 2*MB;
EVE4_DATA_SIZE =0.5*MB;
NDK_DATA_SIZE = 4*MB;
IPU1_1_CODE_SIZE = 2*MB;
IPU1_1_DATA_SIZE = 5*MB;
IPU1_0_CODE_SIZE = 8*MB;
IPU1_0_DATA_SIZE = 35*MB;
IPU2_CODE_SIZE = 2*MB;
IPU2_DATA_SIZE = 5*MB;
DSP1_CODE_SIZE = 4*MB;
DSP1_DATA_SIZE = 36*MB;
DSP1_DATA_SIZE_2 = 1*MB;
DSP2_CODE_SIZE = 2*MB;
DSP2_DATA_SIZE = 1*MB;
DSP2_DATA_SIZE_2 = 1*MB;

There is no way that with this I cannot do one simple allocation so I need some help with this.

Thank you,

Srdjan