Hello everybody,
I'm trying to test my application on DM642 board.
I have to use a number of file access subroutines and
printf to read the configuration file and help me in
the debug process, and this seems to create a lot of
problem.
In fact the programs locks without evident motivation;
I've read that it is better to use LOG_printf, and I
will try it but how to read a file from harddisk
without fread and similar subroutine? The file that I
have to read is an image file stored in raw format and
some configuration file.
It is not important for me to find an "beautiful"
solution, this is obviously simply a temporary
approach because after some test the image will come
from videoport and the configuration parameter will
come from a uC.
PS I know that it is possible to use header file to
store these data, but is there some different
approach.
The files to be read are an image of size 640*480
pixels and a configuration file of about 20 KB
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it
Debugging and reading file from HD
Started by ●December 23, 2005
Reply by ●December 27, 20052005-12-27
hi,
May be you can use the File I/O capabilities of the
CCS. Refer CCS help for more details.
regards,
Dileepan.
--- Giovanni Parodi <giovanniparodi79@giov...> wrote:
> Hello everybody,
> I'm trying to test my application on DM642 board.
> I have to use a number of file access subroutines
> and
> printf to read the configuration file and help me in
> the debug process, and this seems to create a lot of
> problem.
> In fact the programs locks without evident
> motivation;
> I've read that it is better to use LOG_printf, and I
> will try it but how to read a file from harddisk
> without fread and similar subroutine? The file that
> I
> have to read is an image file stored in raw format
> and
> some configuration file.
> It is not important for me to find an "beautiful"
> solution, this is obviously simply a temporary
> approach because after some test the image will come
> from videoport and the configuration parameter will
> come from a uC.
> PS I know that it is possible to use header file to
> store these data, but is there some different
> approach.
> The files to be read are an image of size 640*480
> pixels and a configuration file of about 20 KB > ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da
> 10MB
> http://mail.yahoo.it >
>
> c6x-unsubscribe@c6x-...
__________________________________
Yahoo! for Good - Make a difference this year.
http://brand.yahoo.com/cybergivingweek2005/
May be you can use the File I/O capabilities of the
CCS. Refer CCS help for more details.
regards,
Dileepan.
--- Giovanni Parodi <giovanniparodi79@giov...> wrote:
> Hello everybody,
> I'm trying to test my application on DM642 board.
> I have to use a number of file access subroutines
> and
> printf to read the configuration file and help me in
> the debug process, and this seems to create a lot of
> problem.
> In fact the programs locks without evident
> motivation;
> I've read that it is better to use LOG_printf, and I
> will try it but how to read a file from harddisk
> without fread and similar subroutine? The file that
> I
> have to read is an image file stored in raw format
> and
> some configuration file.
> It is not important for me to find an "beautiful"
> solution, this is obviously simply a temporary
> approach because after some test the image will come
> from videoport and the configuration parameter will
> come from a uC.
> PS I know that it is possible to use header file to
> store these data, but is there some different
> approach.
> The files to be read are an image of size 640*480
> pixels and a configuration file of about 20 KB > ___________________________________
> Yahoo! Mail: gratis 1GB per i messaggi e allegati da
> 10MB
> http://mail.yahoo.it >
>
> c6x-unsubscribe@c6x-...
__________________________________
Yahoo! for Good - Make a difference this year.
http://brand.yahoo.com/cybergivingweek2005/