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.

No output after compiling - Please advice

Hi,


My code compiles without any errors in CCS. But, after I click on the "resume" button, no output is printed on the console window and  the status of "C6678 Device Functional Simulator, Little Endian_0/TMS320C66x_0" - Core 0, on the Debug window has been "Running" for atleast 20-30 mins now.

I am doing a complex matrix inverse (of size 36x36) and not sure if that is causing this issue.

I increased the stack and heap sizes to avoid any memory problems. But my code still does not print out any results.


Thanks for your time and advice.

  • It is very difficult to give a precise answer for such situations. Usually printf issues do come down to insufficient stack and heap spaces. Other tips for troubleshooting printf issues can be found here: http://processors.wiki.ti.com/index.php/Tips_for_using_printf

    I would suggest other debugging methods to verify if the code itself is functioning correctly. For example, nstead of running the code, you could try stepping through it and checking if variables/memory/register values are as expected. Maybe try setting breakpoints at certain points in the code and check if the values are as expected when halted there. This could help isolate if there is more to the problem then just printf not working.

  • Hi Aarti,


    Thank you for the debugging tips and also for directing me to the "printf" issues link.

    I will look in to setting up breakpoints to check for any other issues.

  • Hi Aarti,


    I was caught up with other work and could not get back to you earlier, with further updates on my issue. I commented out most of my code and compiled it in CCS again (to see where exactly I am having problems with my "printf").

    The "printf" command seems to be working fine for the first few lines of my code. However, I am getting stuck before the following piece of code starts:

    for (i=0; i<36; i++)
        {
            for (j=0; j<36; j++)
            {
                if (i == j)
                {
                    X_real[i][j] = pilot_f_real[i];
                    X_imag[i][j] = pilot_f_imag[i];
                    printf("\nI am inside diagonal elements loop!");
                    printf("\n X[%d][%d]: %.15g %+.15gi\n",i,j,X_real[i][j], X_imag[i][j]);
                }

                else
                {
                    X_real[i][j] = 0.0;
                    X_imag[i][j] = 0.0;
                    printf("\nI am inside zeroing if loop!");
                    printf("\n X[%d][%d]: %.15g %+.15gi\n",i,j,X_real[i][j], X_imag[i][j]);
                }
            }
        }

    Every time I compile my project, I end up getting new errors. For example:

    1. gti_sim_server has stopped working error and then CCS crashes.

    2. Read error: Invalid File ID (64220) in CIO message!

    3. Invalid CIO command (0) in the CIO buffer at address (0x13318) was not recognized. Please check the device and program memory maps.

    4. Sometimes, it does not give any errors and the core0 status in the debug window remains: Running

    C6678 Device Functional Simulator, Little Endian_0/TMS320C66x_0 (Running)

    5. A couple of times X values were also printed on the console!


    I would appreciate if you can look in to this and advice any work around that might be possible for this issue.


    Thanks for your help.



  • Hi,

    I created a small testcase using the code you sent and gave some generous stack and heap space (0x800 each), but unfortunately I couldn't reproduce the same problem as you. 

    In any case, please run the attached code and see if you still see the same issue you reported. If this happens, please check which release you are using (I am using 5.5.0.00077) and, if the release is the same, I wonder if somehow the simulator is showing a bug in your particular setup.

    Hope this helps,

    Rafael

     

     

    C6678_printf_test.rar
  • Hi Rafael,


    Thank you very much for taking time to look in to this issue. I m using CCSV5.2.1 and was able to run your test case without any errors. I changed few things in my code and now I am getting outputs for the first half of my project.


    After this, my CCS crashes with gti_sim_server.exe error (before the following piece of code starts).

    Could you please let me know if I can do calculations on complex arrays/matrices with their indices starting from 1 instead of 0 in CCS (or does it cause any other issues with such indexing)?

    Example:

    for(i=0;i<36;i++)
       {
           for(j=0;j<36;j++)
           {
               a_org[i+1][j+1]  =  Rypyp_real[i][j];
               printf("\n a_org[%d][%d]: %.15g ; Rypyp_real[%d][%d]: %.15g",i+1,j+1,a_org[i+1][j+1],i,j,Rypyp_real[i][j]);

           }

       }

    Thank you for your help.

    TI_e2e_upload.docx