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.

One more problem with F2812

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

  • 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

  • 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

  • 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

  • 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

  • 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

    281x_printf_example.zip