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.

Why my C6713 always shows weird error when running some code?

Hello:

   Today I want to show you a very simple code.

Here I want to define a 2-D vector to load some data into this vector.

 

However, what made me baffled was when I extended the vector size M N from 10*5 to 100*5, the code could run successfully.  But if I extended the size to a certain value such as 100*10, the error occured.

 

Error looked like this:

 

 

 

Due to the shortage of development experience with C6713, I don't know what's the meaning of this type of error?

Several days ago I also encountered this type of error when I typed into the C program containing the syntax I was not sure whether correct or not.

 

Could you please give me some suggestions?

 

thank you very much

 

Yu

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  • Maybe your stack has intruded into your heap and code. Try adding a static attribute to move your big array off the stack, eg.
    static int vector[M][N]={0};
    The linker will complain if there is not enough memory.
  • Hi,

    Thanks for your post.

    Yes, as Normal says, it is a memory corruption issue. Please check the linker command file and map all the data variables used in the code to approriate memory sections. This would fix your issue and please ensure that you have sufficient stack memory for local variables used inside the function routines.

    Thanks & regards,

    Sivaraj K

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question

    -------------------------------------------------------------------------------------------------------