<?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: MQX 4.1 FTP server not working in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331456#M10640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What task does the FTP server get its stack allocated from?&amp;nbsp; RTCS?&amp;nbsp; Or does it get allocated from whatever task the FTP_init function was called from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&amp;nbsp; Nevermind.&amp;nbsp; It looks like it allocates its own stack space.&amp;nbsp; FTP server stack size is 1200, and FTP Session stack size is 3000 per session.&amp;nbsp; So with one session, it looks like it uses about 4200 bytes of stack.&amp;nbsp; I had to decrease the stack size allocated to MFS.&amp;nbsp; After I did that, the FTP server ran fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 19:45:01 GMT</pubDate>
    <dc:creator>njk909</dc:creator>
    <dc:date>2014-08-06T19:45:01Z</dc:date>
    <item>
      <title>MQX 4.1 FTP server not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331453#M10637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am using a 52259 with MQX 4.1.&amp;nbsp; I have a USB stick connected and mounted to MFS/Partition manager at "a:".&amp;nbsp; I am able to read/write files to this, so I know it is mounted properly.&amp;nbsp; I am using the following code to initialize the FTP server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;FTPSRV_PARAM_STRUCT&amp;nbsp; params = {0};&lt;/P&gt;&lt;P&gt;unsigned int old_handle = ftpsrv_handle;&lt;/P&gt;&lt;P&gt;params.af |= AF_INET;&lt;/P&gt;&lt;P&gt;params.auth_table = (FTPSRV_AUTH_STRUCT*) ftpsrv_users;&lt;/P&gt;&lt;P&gt;params.root_dir = "a:";&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ftpsrv_handle = FTPSRV_init(&amp;amp;params);&lt;/P&gt;&lt;P&gt;if (ftpsrv_handle != 0)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; printf("FTP Server Started. Root directory is set to \"%s\", login: \"%s\", password: \"%s\".\n", &lt;/P&gt;&lt;P&gt; params.root_dir,&lt;/P&gt;&lt;P&gt; ftpsrv_users[0].uid, &lt;/P&gt;&lt;P&gt; ftpsrv_users[0].pass);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I then try to connect with FileZilla, and here is what I get:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status: Connecting to 192.168.2.100:21...&lt;/P&gt;&lt;P&gt;Status: Connection established, waiting for welcome message...&lt;/P&gt;&lt;P&gt;Response: 220 RTCS FTPSRV Ready&lt;/P&gt;&lt;P&gt;Command: USER developer&lt;/P&gt;&lt;P&gt;Response: 331 User name okay, need password.&lt;/P&gt;&lt;P&gt;Command: PASS *********&lt;/P&gt;&lt;P&gt;Response: 230 Password ok, User logged in.&lt;/P&gt;&lt;P&gt;Status: Connected&lt;/P&gt;&lt;P&gt;Status: Retrieving directory listing...&lt;/P&gt;&lt;P&gt;Command: PWD&lt;/P&gt;&lt;P&gt;Response: 257 "\" is the current directory&lt;/P&gt;&lt;P&gt;Command: TYPE I&lt;/P&gt;&lt;P&gt;Response: 200 Type Binary.&lt;/P&gt;&lt;P&gt;Command: PASV&lt;/P&gt;&lt;P&gt;Response: 227 Entering Passive Mode (192,168,2,100,19,136).&lt;/P&gt;&lt;P&gt;Command: LIST&lt;/P&gt;&lt;P&gt;Response: 150 Opening data connection.&lt;/P&gt;&lt;P&gt;Response: 451 Requested action aborted. Local error in processing&lt;/P&gt;&lt;P&gt;Error: Failed to retrieve directory listing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am connecting using default FileZilla settings.&amp;nbsp; Any ideas?&amp;nbsp; If I change my FTP server param to use c:, and leave my usb stick at a:, I get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Response: 550 Requested action not taken. File unavailable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as a response to the list command, instead of response 150/451 above.&amp;nbsp; This tells me that a: is a valid directory in the initial case, whereas I know c: was invalid.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Aug 2014 18:27:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331453#M10637</guid>
      <dc:creator>njk909</dc:creator>
      <dc:date>2014-08-03T18:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 FTP server not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331454#M10638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried web_havc demo, enabled ftp server, pc as client. k70F120 as ftp server.&amp;nbsp; Here is my result. (I added a printf in ftpsrv_ses_init). Maybe you can refer to this demo&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45395i9A81205B92D247B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 06:52:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331454#M10638</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2014-08-06T06:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 FTP server not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331455#M10639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this error usually means that server ran out of memory, so it is unable to create another socket for data connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Karel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 18:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331455#M10639</guid>
      <dc:creator>karelm_</dc:creator>
      <dc:date>2014-08-06T18:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 4.1 FTP server not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331456#M10640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What task does the FTP server get its stack allocated from?&amp;nbsp; RTCS?&amp;nbsp; Or does it get allocated from whatever task the FTP_init function was called from?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&amp;nbsp; Nevermind.&amp;nbsp; It looks like it allocates its own stack space.&amp;nbsp; FTP server stack size is 1200, and FTP Session stack size is 3000 per session.&amp;nbsp; So with one session, it looks like it uses about 4200 bytes of stack.&amp;nbsp; I had to decrease the stack size allocated to MFS.&amp;nbsp; After I did that, the FTP server ran fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 19:45:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-4-1-FTP-server-not-working/m-p/331456#M10640</guid>
      <dc:creator>njk909</dc:creator>
      <dc:date>2014-08-06T19:45:01Z</dc:date>
    </item>
  </channel>
</rss>

