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.

CCS/TMS320VC5416: Output is not displayed

Part Number: TMS320VC5416


Tool/software: Code Composer Studio

Hello all,

I am working on DSK5416. I simply compiled and loaded the circular convolution program.But I didn't got the Output.There is no errors in the code but when I pressed the resume button I couldn't see the output.

I have attached the snapshot and the program.

/* prg to implement circular convolution */
#include<stdio.h>
   int m,n,x[30],h[30],y[30],i,j,temp[30],k,x2[30],a[30];
void main()
{


   printf("  enter the length of the first sequence\n");
   scanf("%d",&m);
   printf("  enter the length of the second sequence\n");
   scanf("%d",&n);
   printf("  enter the first sequence\n");
   for(i=0;i<m;i++)
   scanf("%d",&x[i]);
   printf("  enter the second sequence\n");
   for(j=0;j<n;j++)
   scanf("%d",&h[j]);
   if(m-n!=0)				/*Iflenght of both sequences are not equal*/
   {
	if(m>n)					/* Pad the smaller sequence with zero*/
	{
	for(i=n;i<m;i++)
	h[i]=0;
	n=m;
	}
	for(i=m;i<n;i++)
	x[i]=0;
	m=n;
   }

   y[0]=0;
   a[0]=h[0];
   for(j=1;j<n;j++)					/*folding h(n) to h(-n)*/
   a[j]=h[n-j];

   /*Circular convolution*/
  for(i=0;i<n;i++)
   y[0]+=x[i]*a[i];
  for(k=1;k<n;k++)
  {
   y[k]=0;
   /*circular shift*/
   for(j=1;j<n;j++)
	x2[j]=a[j-1];

   x2[0]=a[n-1];
   for(i=0;i<n;i++)
    {
	a[i]=x2[i];
	y[k]+=x[i]*x2[i];
    }
 }
  /*displaying the result*/
  printf("  the circular convolution is\n");
  for(i=0;i<n;i++)
  printf("%d \t",y[i]);

  }









  • I am using Code Composer Studio Version 5.0.0 with Windows 7 Ultimate OS.
  • Hi Abhishek,

    Could you check whether you have properly selected display console? See the attached below screen shot where is shown with red border the button which selects the active display console:

    BR

    Tsvetolin Shulev

  • Yes I got output of hello world program but I could not see the output of circular convolutiona
  • Could you attach your source code to search for some issue in the code. The issue may not be due to display console selection.

    BR
    Tsvetolin Shulev
  • I have already attached the source code in my first post.Anyways I have attached again.

    /* prg to implement circular convolution */
    #include<stdio.h>
       int m,n,x[30],h[30],y[30],i,j,temp[30],k,x2[30],a[30];
    void main()
    {
    
    
       printf("  enter the length of the first sequence\n");
       scanf("%d",&m);
       printf("  enter the length of the second sequence\n");
       scanf("%d",&n);
       printf("  enter the first sequence\n");
       for(i=0;i<m;i++)
       scanf("%d",&x[i]);
       printf("  enter the second sequence\n");
       for(j=0;j<n;j++)
       scanf("%d",&h[j]);
       if(m-n!=0)				/*Iflenght of both sequences are not equal*/
       {
    	if(m>n)					/* Pad the smaller sequence with zero*/
    	{
    	for(i=n;i<m;i++)
    	h[i]=0;
    	n=m;
    	}
    	for(i=m;i<n;i++)
    	x[i]=0;
    	m=n;
       }
    
       y[0]=0;
       a[0]=h[0];
       for(j=1;j<n;j++)					/*folding h(n) to h(-n)*/
       a[j]=h[n-j];
    
       /*Circular convolution*/
      for(i=0;i<n;i++)
       y[0]+=x[i]*a[i];
      for(k=1;k<n;k++)
      {
       y[k]=0;
       /*circular shift*/
       for(j=1;j<n;j++)
    	x2[j]=a[j-1];
    
       x2[0]=a[n-1];
       for(i=0;i<n;i++)
        {
    	a[i]=x2[i];
    	y[k]+=x[i]*x2[i];
        }
     }
      /*displaying the result*/
      printf("  the circular convolution is\n");
      for(i=0;i<n;i++)
      printf("%d \t",y[i]);
    
      }
    
    
    
    
    
    
    
    
    
    

  •  I got two warnings at the time of building the project.

  • The reason causing "warning creating output section .cio without a sections specification" message and how to solve it is described at:
    processors.wiki.ti.com/.../Build_Errors_in_CCS
    e2e.ti.com/.../92716

    About 3583.main.c program output I tested your source and it outputs the y[i] array but I made one change. I replaced:
    printf("%d \t",y[i]);
    with
    printf("y[%d] = %d \n", i, y[i]);

    BR
    Tsvetolin Shulev
  • Kindly share any assembly code of TMS320VC5416. If you have assembly code of addition or subtraction then it will be fine.