This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
FILE I/O in LEON3 ECOS Port Question
- From: mishrad at uci dot edu
- To: ecos-discuss at sourceware dot org
- Date: Wed, 2 Sep 2009 14:40:16 -0700
- Subject: [ECOS] FILE I/O in LEON3 ECOS Port Question
Hi,
I am trying to run a simple file I/O program on TSIM after ECOS targetting.
Command line for compilation and linking ->
sparc-elf-g+ + -g -nostdlib -Ttarget.ld -msoft-float -I ./install/include
-L./install/ lib -o test dummy.c
#include <stdio.h>
int main()
{
FILE *f;
f = fopen("test. jpg", "w");
if(!f) printf("Cannot open file\n");
fprintf(f, "hi");
}
It shows, cannot open file when I run it on TSIM.
How to run an application with File I/O on ECOS Leon3 port?
Thanks and Regards,
Deepak
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss