2 Replies Last post: Jul 3, 2009 1:27 AM by Muhammad Abdullah  
Muhammad Abdullah Member 2 posts since
Jul 2, 2009
Currently Being Moderated

Jul 2, 2009 2:05 AM

fwrite/ fputc error

I am using BF537 ez kit lite.
I am implementing its example  .............\Analog Devices\VisualDSP 5.0\Blackfin\Examples\ADSP-BF537 EZ-Kit Lite\Getting Started Examples\Part_2_1.
Simply i have defined a File pointer in it and read a file and store it in a dynamically created chracter array. Its ok.
The problem is when i save this file to the disk using fwrite, it writes the file but after some interval 4 bytes are re copied as shown in figure attached. Why these bytes are re-copied. If you save it at once or in chunks same problem occours.
I have checked the data of array its ok but i dont no why its is not writing the whole array truely into the file.
Figure:-
Two files are compared (actual file and saved file) which are in background.
Result of comparasion is in the file which is on forefront.
Attachments:
Joe B Analog Employee   30 posts since
Jan 22, 2009
Currently Being Moderated
1. Jul 2, 2009 2:00 PM in response to: Muhammad Abdullah
Re: fwrite/ fputc error

Can you provide the modified files so that we may try to replicate the problem here?

 

Thanks,

Joe

More Like This

  • Retrieving data ...