Hi,
new to CCS and trying to build algorithm.but i am getting the follwoing errors.
"could not open source file "std.h"
can anyone help how can i include this
Regards,
Reddy
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.
Hi,
new to CCS and trying to build algorithm.but i am getting the follwoing errors.
"could not open source file "std.h"
can anyone help how can i include this
Regards,
Reddy
Reddy,
Is this a BIOS5 application?
If so you need to have the BIOS include directory. If you go to the build options for your project and click on the include options section is the following include path listed?
"${BIOS_INCLUDE_DIR}"
That path should be automatically included for any project that was created using BIOS.
If this is a BIOS6 or RTSC based project there should be include paths like:
"${XDC_CG_ROOT}/packages"
"${BIOS_CG_ROOT}/packages/ti"
"${BIOS_CG_ROOT}/packages"
Knowing a little more about your project would help.
Regards,
John
Hi John,
thanks for reply.
yes this is DSP/BIOS 5 application.
after adding "${BIOS_INCLUDE_DIR}" i am getting the following error
option --include_path is missing its parameter 'dir'
could you pls help what is the problem.
my project is open source Sampling rate converter ported for OMAP processor.
actually very new to all this technology.
I have only source code.which contains
#include <ti/xdais/ialg.h>
#include <ti/xdais/dm/xdm.h>
#include <ti/xdais/dm/iaudio.h>
#include <ti/xdais/dm/iaudenc1.h>
header files also.
this info may be help to analyse the project.
my aim is to calculate MIPS for sampling rate converter.
let me know if any more deatils needed to help me
Regards,
Reddy
Reddy,
How did you create the project? The BIOS_INCLUDE_DIR macro is something that would be setup for any BIOS5 project. However if a project was not originally a BIOS project then it would not be defined.
If you go to the Macros tab in the build properties dialog it will show you all the system macros that are defined by the wizard for that project. If that BIOS_INCLUDE_DIR is missing I worry that you are going to have other problems building. You may be better off creating a new project (and making sure to select BIOS5 in the wizard) and then copying your source files into it.
Regards,
John
Reddy,
For hello world this is all you need:
#include <stdio.h>
void main(void) {
printf("Hello World!\n");
}
However if your project is using the DSP/BIOS v5 operating system then it has to be setup as a BIOS project. std.h is a BIOS header file. If you want to have a BIOS project then please create a new project and indicate in the wizard that it will be a BIOS application. This works a little different depending on if you are using CCSv4.1 or CCSv4.2. The screen captures below show how to do this in each of the versions.
For CCSv4.1 on the Project settings page of the wizard you need to select that it is a BIOS5 project
For CCSv4.2 in the wizard you will need to select a DSP/BIOS 5 example template:
Regards,
John
John,
Thanks for reply.
when I am creating DSP/BIOS project i can able to solve the #include<std.h> issue.
when I am trying to include "ialg.h" file to my library i am getting same problem.
After CCS ver4 installation,I am tring to use xDAIS compliance APIs in my project.
In this case what are all settings needed to solve my problem.
for example my sample code is
/*****************************************/
#include <ti/xdais/ialg.h>
void main(void)
{
DM_ISRC_DM.process();
}
/*********************************************/
this file i could not able to build in DSP/BIOS based project.
kindly help.
Regards,
Reddy
Reddy,
You will need to add the include path for that file. For me that is:
C:\Development Tools\Programs\Code Composer Studio v4.2.0\xdais_7_10_00_06\packages
Modify that path to match your installation directory and add it to the include paths specified in the build options
kondal, looks like you're trying to create an XDM-compliant codec library. You might benefit from this wizard (included in CCS):
http://processors.wiki.ti.com/index.php/XDM_GenAlg_Wizard_FAQ
Depending on your needs, it typically makes sense to separate the codec library (which can be used in many applications) from your initial [likely BIOS 5-based] test app. The codec library typically doesn't have any OS dependencies (e.g. BIOS), but only depends on XDAIS interfaces/headers. Once you want to integrate this codec into larger systems, there are some XDAIS/XDM-aware frameworks TI provides to support that integration.
Chris
Hi John,
I added my path to include options as per your guidence,
I am getting the following errors.
error: identifier "Int" is undefined
kindly analyse and advice is the problem.
For your reference I am providing steps which I followed.
1.Installed CCS ver4.2(30 days licensed )
2.File->New CCS project and created DSP/BIOS empty project.
3.Added my C source file to existing project.
4. added "C:\Program Files\Texas Instruments\xdais_7_10_00_06\packages" to Buildproperties->c600copiler->includeoptions
then I given build.
Regards,
reddy
Reddy
Reddy,
Can you click on my username and send me a private message containing your project?
John
Hi Jhon and Chris ,
YES i am trying to create XDM-compliant code library.
As a first step I am tring to work with example codes.
I downloaded xDAIS example from TI site and tring to compile in CCS,but i am failing to do this.
My aim is to calculate MIPS for xDAIS/xDM compliance alogorithm using ccs ver4.2.
for this i found example code from TI site
http://processors.wiki.ti.com/index.php/XDAIS_sample_algorithm
could you please help how can calculate MIPS (using any simulator only) .
please explain me we with CCS ver4.2 snap shots.
Regards,
Reddy.
Reddy,
I can't get to the project you attached. I think something went wrong when attaching. Can you click on reply and then when the reply editor comes up there will be a paper clip at the far right of the toolbar.
Regards,
John
John,
I attached the required zip file.
after review of your reply , found one difference in my installed ccs IDE .
In my installed version i did not find the options (whcih is marked with rectaguler area in below fig.)
could ypu please analyse this aslo and help me.
Regards,
Reddy
Reddy,
Yes there are different versions of the wizard. If you are missing that area at the bottom when you click next you get a screen that allows you to select from a list of templates. One of which is an empty BIOS5 project.
When importing the examples you provided CCS doesn't seem to recognize them as BIOS projects. I have filed a bug for that SDSCM00038741.
I then created a new project using the project wizard and selected an empty BIOS5 project as the template. I copied in the source code from firtest1. I added the compiler include path for XDAIS and the include path for the "include" folder that was in the project. I also added the libraries that were in the example and the include path for them. After doing that I was able to build and link the project.
I was able to load it and step through it on a C6416 simulator ok.
Regards,
John
Jhon,
Thank you so much for help.
YES now i am able to build my project.
First I taken code which you sent me and replaced my project files and builded successfully.
I aslo created new BIOS project ,added my source files,include options and successfully builded.
My first task finished.Now I am calculating MIPS for my core funtion.
I will post issues, if i failed to do MIPS calculation.
Regards,
Reddy.