<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>DSP Support Forum: Message List - fwrite/ fputc error</title>
    <link>http://ez.analog.com/community/blackfin-processors?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 06 Jul 2009 05:15:02 GMT</pubDate>
    <generator>Clearspace 2.5.7 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-07-06T05:15:02Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: fwrite/ fputc error</title>
      <link>http://ez.analog.com/message/2318?tstart=0#2318</link>
      <description>&lt;!-- [DocumentBodyStart:662afddb-57d2-42b7-a497-f4a3f48a2793] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi&lt;/p&gt;&lt;p&gt;The file on DSP is &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;lwip_sysboot_threadtype.c&lt;/span&gt;&lt;/strong&gt; which is modified and serve as server.&lt;/p&gt;&lt;p&gt;While client is connected through VC++ using &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;client.cpp&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Files attached :- 1. lwip_sysboot_threadtype.c (file on DSP board)&lt;/p&gt;&lt;p&gt;                         2. client.cpp (running in VC++ envoirnment)&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks alot.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:662afddb-57d2-42b7-a497-f4a3f48a2793] --&gt;</description>
      <pubDate>Fri, 03 Jul 2009 05:27:47 GMT</pubDate>
      <author>analog@sgaur.hosted.jivesoftware.com</author>
      <guid>http://ez.analog.com/message/2318?tstart=0#2318</guid>
      <dc:date>2009-07-03T05:27:47Z</dc:date>
      <clearspace:dateToText>4 months, 2 weeks ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: fwrite/ fputc error</title>
      <link>http://ez.analog.com/message/2312?tstart=0#2312</link>
      <description>&lt;!-- [DocumentBodyStart:427182d5-64cd-4c21-9967-4bcd3b104a6b] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Can you provide the modified files so that we may try to replicate the problem here?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Joe&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:427182d5-64cd-4c21-9967-4bcd3b104a6b] --&gt;</description>
      <pubDate>Thu, 02 Jul 2009 18:00:11 GMT</pubDate>
      <author>analog@sgaur.hosted.jivesoftware.com</author>
      <guid>http://ez.analog.com/message/2312?tstart=0#2312</guid>
      <dc:date>2009-07-02T18:00:11Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>fwrite/ fputc error</title>
      <link>http://ez.analog.com/message/2304?tstart=0#2304</link>
      <description>&lt;!-- [DocumentBodyStart:d72956dc-97ae-4843-b058-b092039a19b5] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;div&gt;I am using BF537 ez kit lite.&lt;/div&gt;&lt;div&gt;I am implementing its example  .............\Analog Devices\VisualDSP 5.0\Blackfin\Examples\ADSP-BF537 EZ-Kit Lite\Getting Started Examples\&lt;strong&gt;&lt;em&gt;&lt;span style="color: #0000ff;"&gt;Part_2_1&lt;/span&gt;.&lt;/em&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Simply i have defined a &lt;span class="yshortcuts" id="lw_1246514238_0"&gt;File&lt;/span&gt; pointer in it and read a file and store it in a dynamically created chracter array. Its ok.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;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.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;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.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Figure:-&lt;/div&gt;&lt;div&gt;Two files are compared (actual file and saved file) which are in background.&lt;/div&gt;&lt;div&gt;Result of comparasion is in the file which is on forefront.&lt;/div&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:d72956dc-97ae-4843-b058-b092039a19b5] --&gt;</description>
      <pubDate>Thu, 02 Jul 2009 06:05:03 GMT</pubDate>
      <author>analog@sgaur.hosted.jivesoftware.com</author>
      <guid>http://ez.analog.com/message/2304?tstart=0#2304</guid>
      <dc:date>2009-07-02T06:05:03Z</dc:date>
      <clearspace:dateToText>4 months, 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
  </channel>
</rss>

