[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] fgetc() blocks, problem solved
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: [microblaze-uclinux] fgetc() blocks, problem solved
- From: Lars <lpn1328@xxxxxxxx>
- Date: Wed, 11 Oct 2006 20:44:47 +0200 (CEST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.se; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=WUdJx445V64iL8jqaj8YOaIACLH/AQucr6a2hQY8qCUxETgH52+Oy2SqliRMQMoWQ9dl1m6NZ4p5KR5KFc8cYmpA+CSUrj/3yTlZNZoeovTlo4x1prJJMladfylGGQVpLQ0Y+E3AqonvfwZHV8+bGaXyzguL7tlo9aoxQ+S02Yo= ;
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
After getting remote debugging working I solved the
problem. The application program had a fuction called
'read' that was called from inside the fgetc code
instead of the uCLinux read(from file). I renamed the
application 'read' function and now file io works
again!
Thank you for remote debugging!
/Lars
--- Lars <lpn1328@xxxxxxxx> skrev:
> Hello list!
>
> I porting a big (?) application (binary about 500kB)
> to microblaze-uclinux. I try to read a text file
> from
> ram disk. Writing the file works OK and I can verify
> that the file exists on the disk by using "cat".
>
> When I read characters from the same file the fopen
> statement works OK but the fgetc() call just blocks
> forever. The program can be interrupted with ctrl-c
> so
> the system has not crashed.
>
> A small 10-line test app built with the same tool
> chain both reads and writes.
>
> Can the size of the binary have any impact on file
> io?
> I have also check that there is plenty of RAM left
> when the prgoram is running.
>
> Board is Suzaku S-030 with
> uClinux-dist-20051110-suzaku3 and
> microblaze-elf-tools-20060213
>
> /Lars Peterson
>
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/