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.
Two files are compared (actual file and saved file) which are in background.
Result of comparasion is in the file which is on forefront.