>... i am
>doing a project on image processing implemented using DSP/BIOS.
>i have to read an image file in the raw file format.
>but i dont know how to read a file in dsp/bios.
>
>my c++ code is
>FILE *fi;
>fi=fopen("apple1.raw","rb");
>
>this code segment is not working.it says FILE and f1 is undefined
Read a file where? In a system running DSP/BIOS, or in the host system
running CCS, used to develop DSP/BIOS applications.
The former is impossible, DSP/BIOS does not support a file system.
If you want to supply data from a file in the host PC to a DSP/BIOS
application there are a few ways to do that.
For a "one time/one data set only" exercise, you can embed the data
file as an array of the appropriate type in your C or C++ code.
If you want to change the data dynamically, or if the data set is to
big to be embedded, you can read it into the system via hardware (does
your target board have a serial port, SPI, USB, ethernet, etc.) or you
can send it using a combination of DSP/BIOS features and CCS support.
Read the documentation for Real Time Data eXchange, Probe points, etc.
The examples supplied with CCS will be helpful.
Reply by Mark Robinson●June 1, 20062006-06-01
jayadevan wrote:
>
> my c++ code is
> FILE *fi;
> fi=fopen("apple1.raw","rb");
>
> this code segment is not working.it says FILE and f1 is undefined
Have you remembered to #include <stdio.h>?
Cheers
mark-r
--
"Let's meet the panel. You couldn't ask for four finer comedians -
so that answers your next question..."
-- Humphrey Lyttleton
Reply by Noway2●May 31, 20062006-05-31
jayadevan wrote:
> Hi all...
>
> I am jayadevan,a student from india.As part of my course curriculum i am
> doing a project on image processing implemented using DSP/BIOS.
>
> i have to read an image file in the raw file format.
> but i dont know how to read a file in dsp/bios.
>
> my c++ code is
> FILE *fi;
> fi=fopen("apple1.raw","rb");
>
> this code segment is not working.it says FILE and f1 is undefined
The C/C++ implementation does not support all of the library functions,
such as fopen(), that a common in a compiler platform for a PC due to
resource limitations in typical embedded hardware.
Since you are using CCS, consider using probe points to communicate
between a PC and your application. I believe that you can also use
RTDX, though I have never done so.
The tutorials in CCS will provide you with examples of both methods.
Reply by jayadevan●May 31, 20062006-05-31
Hi all...
I am jayadevan,a student from india.As part of my course curriculum i am
doing a project on image processing implemented using DSP/BIOS.
i have to read an image file in the raw file format.
but i dont know how to read a file in dsp/bios.
my c++ code is
FILE *fi;
fi=fopen("apple1.raw","rb");
this code segment is not working.it says FILE and f1 is undefined