[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] fgetc() blocks, problem solved



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/