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.

I am dealing with some code which has lot of arrays in it and i just have the error saying the array is too large

msg m26_t[25];

int get_fastCorrection (Sat* Sat, msg * msg1, msg[4][2],  msg24_t[15], msg * msg6, msg * msg10, msg * msg7, double eps_ltc_m, int rnd_options[8]);

I have multiple arrays in my code like this and the error is the same every where  "which is array is too large" and I am using code composer studio 5.3.0

could any one please try to help me

Thank you.

  • Where is this error message coming from? The linker?

  •  It is just listed in the problems window sir  and  did not mention any linker error , "just saying array is too large" 

  • Please provide the build output in the build console. And if you double-click on the error in the problems window, it should provide more details. Please provide those details. Screenshots are helpful also.

  • ravi raj1 said:

    I have multiple arrays in my code like this and the error is the same every where  "which is array is too large" and I am using code composer studio 5.3.0

    It may be coming from the compiler. Which target processor are you working with (MSP430, C2000, C64x+ etc..) and what sized arrays are these errors coming for? Could you provide a sample of the code where these errors are generated? If you look at the CCS build console instead of the Problems view and if it shows the line numbers where the error is coming from that should help identify the arrays that it is complaining about.

  • I have both the views on my screen sir the console and the problems  and yes i know the errors where they are coming from also because of the line number mentioned ,here are my arrays where i am getting array too large errors sir 

    msg m18_t[11],

    msg msg24_t[25],

    msg msg25_t[15],

    msg m26_t[25],

    char m18_char[5][263],

  • i am providing you the scre en shot of the console window sir

  • Can you zip up your project folder and attach it here so we can try to duplicate the error and look into it further?