<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem with my FTP Client. in ColdFire/68K Microcontrollers and Processors</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141635#M2434</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;Assuming that your application is based on NicheLite port (Coldfire_Lite) you could try to reduce the NUMBIGBUFS macro to as minimum as possible to work. It saves some RAM space.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Also, if you are using many global buffers or even static local buffers, you could use the stack instead of reserving this space for them.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;32K isn´t much space when we are talking about many tcp/ip protocolos running on same application.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Hope it helps&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2007 19:02:22 GMT</pubDate>
    <dc:creator>Kremer</dc:creator>
    <dc:date>2007-07-31T19:02:22Z</dc:date>
    <item>
      <title>MCF52235 - Problem with my FTP Client.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141631#M2430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I built a FTP Server and its working flawless, i can connect, log in, tranfer big files and disconnect multiple times (like 1000) without problems.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;My FTP Client works like this...after some time, it connects to a server, logs in, uploads a big file (1-8MB) and disconnects. The problems appears after some connections, it can open the control socket but cant open the data socket(the data socket remains invalid), looks like it runs out of memory and cant create&amp;nbsp;the socket, its strange but it can create the control socket, but not the data socket...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Client and Server are in the same task and they use the same sockets.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I already&amp;nbsp;tried to wait more time between connections, tried to reduce and increase stack sizes and buffer sizes.&lt;BR /&gt;&lt;BR /&gt;Do you guys have any idea how can i try to solve this?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;--&lt;BR /&gt;Alban Edit: FSL Part Number added&amp;nbsp;to Message Subject line.&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-07-30&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;06:00 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 21:12:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141631#M2430</guid>
      <dc:creator>Nilson</dc:creator>
      <dc:date>2007-07-30T21:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my FTP Client.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141632#M2431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello Nilson,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It is generally a good idea to give as much details as possible&lt;/DIV&gt;&lt;DIV&gt;For instance &lt;STRONG&gt;we push everyone on this Forum to include the &lt;U&gt;Freescale Part Number on the subject line&lt;/U&gt;&lt;/STRONG&gt;, at least. Otherwise there are so many parts that it is difficult to guess what part you are talking about.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;On top of this, if you need to guess a lot of information a lot of people will not bother guessing and will not try addressing it.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Alban.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 21:48:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141632#M2431</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-07-30T21:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my FTP Client.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141633#M2432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Sorry about that, im using a MCF52235.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 23:45:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141633#M2432</guid>
      <dc:creator>Nilson</dc:creator>
      <dc:date>2007-07-30T23:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my FTP Client.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141634#M2433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;If anyone has some questions, fell free to ask.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Looks like im having problem because of the lack of RAM in the device.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Anyone has some idea how could i save some RAM?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 01:44:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141634#M2433</guid>
      <dc:creator>Nilson</dc:creator>
      <dc:date>2007-07-31T01:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my FTP Client.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141635#M2434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;Assuming that your application is based on NicheLite port (Coldfire_Lite) you could try to reduce the NUMBIGBUFS macro to as minimum as possible to work. It saves some RAM space.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Also, if you are using many global buffers or even static local buffers, you could use the stack instead of reserving this space for them.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;32K isn´t much space when we are talking about many tcp/ip protocolos running on same application.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Hope it helps&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 19:02:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141635#M2434</guid>
      <dc:creator>Kremer</dc:creator>
      <dc:date>2007-07-31T19:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my FTP Client.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141636#M2435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Assuming that your application is based on NicheLite port (Coldfire_Lite) you could try to reduce the NUMBIGBUFS macro to as minimum as possible to work. It saves some RAM space.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;I did that.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;EM&gt;Also, if you are using many global buffers or even static local buffers, you could use the stack instead of reserving this space for them.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Im using one big global buffer to send and receive ftp data. i don't how could i use the stack&amp;nbsp;to reserve space for this, could you enlight me?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;EM&gt;32K isn´t much space when we are talking about many tcp/ip protocolos running on same application.&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;STRONG&gt;Its funny that my Server can handle lots of connections in sequence, but not the Client. Looks like the Client isnt freeing memory and after some connections memory is full. Maybe its having problems closing the sockets? In Server i use the server socket as listen, but in Client i use as m_connect. do you have any idea i could i track if the memory isnt being released?&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you very much for the help.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 22:46:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141636#M2435</guid>
      <dc:creator>Nilson</dc:creator>
      <dc:date>2007-07-31T22:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with my FTP Client.</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141637#M2436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;The niche stuff was not designed for machines with small RAM memory like the 52233. When I was working with that part the most effective way to free up memory turned out to be making the stacks smaller, and reducing the number of such stacks by minimizing the number of active tasks.&lt;BR /&gt;&lt;BR /&gt;Also, there are a many of tables of constants that niche neglected to mark with the "const" keyword, so they end up taking space in initialized RAM. Making them const causes the linker to keep only one copy in flash.&lt;BR /&gt;&lt;BR /&gt;The console has a memory command to show dynamic memory statistics, but the statisitics keeping had bugs in the version shipped with the eval boards. If you watch memory behavior you will see that sockets are expensive, particularly when they hang around in time-wait state after being closed.&lt;BR /&gt;&lt;BR /&gt;Now I use the 5282 with 64K of RAM, and the squeeze is not nearly as severe.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Aug 2007 07:51:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/MCF52235-Problem-with-my-FTP-Client/m-p/141637#M2436</guid>
      <dc:creator>bkatt</dc:creator>
      <dc:date>2007-08-05T07:51:12Z</dc:date>
    </item>
  </channel>
</rss>

