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.

TMS320C6713B: #225-D function declared implicitly

Part Number: TMS320C6713B

Hi :D 

Does somebody know how to solve warning 225-D. I read some information about it but I do not understand how to use it in a code. 

This is my code : 

/*
* main.c
*/
#include "stdio.h"
#include "stdlib.h"
#include "Include/csl.h"
#include "Include/dsk6713.h"
#include <Include/dsk6713_aic23.h>


Uint32 fs=DSK6713_AIC23_FREQ_8KHZ; //set sampling rate
#define DSK6713_AIC23_INPUT_MIC 0x0015
#define DSK6713_AIC23_INPUT_LINE 0x0011
Uint16 inputsource=DSK6713_AIC23_INPUT_MIC; //select input

interrupt void c_int11() //interrupt service routine
{
short sample_data;
sample_data = input_left_sample(); //input data (***)
output_left_sample(sample_data); //output data (***)
return;
}

void main()
{
comm_intr(); //init DSK, codec, McBSP (***)
while(1); //infinite loop
}

And warnings appears in (***) lines.  

 

The problem with comm_intr() is that when I use Vectos_intr.asm file it bring me another warning and I do not know why as well. But main problem is 225-D error in lines 19 and 20 since it does not allowed me to process the signal from input to the output. 

  • These days most example projects actually setup the compiler options so that 225-D is an error and not a warning.

    https://software-dl.ti.com/ccs/esd/documents/dmed/HTML/225.html

    A really simple example would be having a call to printf() without having included stdio.h

    Where are input_left_sample() and output_left_sample() declared?

    Searching on those function names on Google I believe you need to include c6713dskinit.h 

    Regards,

    John

  • That is a good point but here comes an another issue. 

    And compilation : 

    To my mind it means that I try to define it one more time because I'm using not only c6713dskinit.h but also c6713dskinit.c when this library is used. 

    On the Internet there are people whose doing the same example and they didn't get this 225 problem. 

    Furthermore, I ran this program 3 days ago and it worked but now I can not open it due to this problem. 

  • That header file must be defining AIC23CfgData.  Remove the #include for it.  Instead, add prototypes for the functions causing the implicit declaration warnings.

    short input_left_sample();

    void output_left_sample(short);

    Add these after the other #includes.


    Another thing to note is that this software is really old and was written for a much older compiler than what is included in CCS today.  You may want to consider downloading an older compiler and configuring the project to use it.  This device is commonly used by universities and typically they specify to use a very old version of CCS (3.x) that includes the old compiler.

    Regards,

    John