TI E2E Community (Beta)
Welcome to the TI E2E (Engineer-to-Engineer) Community! We invite you to freely and openly interact with your peer Engineers, TI Engineers, and other experts in order to ask questions, share knowledge, explore ideas, and help solve problems.
More Search Options

One more problem with F2812

rated by 0 users
Not Answered This post has 0 verified answers | 5 Replies | 2 Followers

Not Ranked
6 Posts
Community Member
Shawn Wang posted on 25 Jun 2009 9:37 AM

Dear All,

I have downloaded the .out file the component F2812, and everything goes well except that I cannot view the result in the output window, since there is no Stdout tab in the output window.  How to solve this problem?

I am using CCS3.1, by the way.

Many thanks for your input.

Shawn

All Replies

Top 50 Contributor
93 Posts
Texas Instruments Employee

Shawn,

Are you saying that you have C I/O statements in your code and you cannot see the output? Please confirm if this is the issue or if provide more detail if I am misunderstanding the issue.

Regards,

Tim Love

Not Ranked
6 Posts
Community Member

Tim,
 
yes, I do have I/O statements in the code while I cannot see the output. The following is my .c file,
 
 
/*
 *  Copyright (c) 2001-2002, Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *  U.S. Patent Nos. 5,283,900  5,392,448
 */
/* "@(#) DSP/BIOS 4.42 02-12-01 (barracuda-h28)" */
/***************************************************************************/
/*                                                                         */
/*     V O L U M E . C                                                     */
/*                                                                         */
/*     Audio gain processing in a main loop                                */
/*                                                                         */
/***************************************************************************/
#include <stdio.h>
#include "volume.h"
/* Global declarations */
int inp_buffer[BUFSIZE];       /* processing data buffers */
int out_buffer[BUFSIZE];
int gain = MINGAIN;                      /* volume control variable */
unsigned int processingLoad = BASELOAD;  /* processing routine load value */
struct PARMS str =
{
    2934,
    9432,
    213,
    9432,
    &str
};
/* Functions */
extern void load(unsigned int loadValue);
static int processing(int *input, int *output);
static void dataIO(void);

/*
 * ======== main ========
 */
void main()
{
    int *input = &inp_buffer[0];
    int *output = &out_buffer[0];
    puts("volume example started\n");
    /* loop forever */
    while(TRUE)
    {      
        /*
         *  Read input data using a probe-point connected to a host file.
         *  Write output data to a graph connected through a probe-point.
         */
        dataIO();
        #ifdef FILEIO
        puts("begin processing");        /* deliberate syntax error */
        #endif
       
        /* apply gain */
        processing(input, output);
    }
}
/*
 *  ======== processing ========
 *
 * FUNCTION: apply signal processing transform to input signal.
 *
 * PARAMETERS: address of input and output buffers.
 *
 * RETURN VALUE: TRUE.
 */
static int processing(int *input, int *output)
{
    int size = BUFSIZE;
    while(size--){
        *output++ = *input++ * gain;
    }
       
    /* additional processing load */
    load(processingLoad);
   
    return(TRUE);
}
/*
 *  ======== dataIO ========
 *
 * FUNCTION: read input signal and write processed output signal.
 *
 * PARAMETERS: none.
 *
 * RETURN VALUE: none.
 */
static void dataIO()
{
    /* do data I/O */
 
    return;
}
 
 
For your reference, I also attached the project with this email for your check. Please forgive the trouble caused from me, a new dsp user. Thank you very much for your help.

 

Shawn

Top 50 Contributor
93 Posts
Texas Instruments Employee

Ok. Since this is the issue lets first check to make sure that you do not have the breakpoint disabled for the CIO statements. Please go to Option -> Customize -> Program/Project/CIO and ensure that the Do Not Set CIO Breakpoint At Load option is not checked.

Regards,

Tim Love

Not Ranked
6 Posts
Community Member

Tim,

 

I have un-check the Do Not Set CIO Breakpoint At Load option, but the results did not appear yet. Please check and help me out. Thanks.

 

Shawn

Top 50 Contributor
93 Posts
Texas Instruments Employee

Shawn,

I have attached a simple printf project that should work on your system. Please try this to see if it works properly. If so, then it would be an issue in your current project that we can then debug.

Regards,

Tim Love

Page 1 of 1 (6 items) |

ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". TI AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY TI. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.