FTP Server example for RT1064

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FTP Server example for RT1064

1,815 Views
markus_winkhoef
Contributor II

Hello NXP community,

is there an example how to implement a FTP server using the MCUExpresso Toolkit?

Best regards,

Markus

5 Replies

1,624 Views
mjbcswitzerland
Specialist V

Hi

The uTasker project has integrated TCP/IP and FAT (on SD card, Memory stick and QSPI flash). Its FTP server integrates directly with the file system and so FTP to such devices are automatically available with no extra work.

The i.MX, its peripherals and storage media are emulated in Visual Studio to allow testing, debugging and developing in approx. real-time (including Ethernet, interrupts, DMA etc.).

See the following:

https://www.utasker.com/iMX/RT1020.html
https://www.utasker.com/iMX/RT1060.html

The RT1064 (also with file system in internal and external QSPI) is being prepared at the moment and I expect to have a reference with the functionality in the next few days:
https://www.utasker.com/iMX/RT1064.html

A further advantage of the solution is that projects can be developed on any i.MX RT part and it can run on other parts without needing complicated porting with different libraries. The same is true for Kinetis and so projects developed on Kinetis parts can then run on i.MX RT parts (or i.MX RT to Kinetis).

Integrated are also OTA upgrade capabilities (eg. via web server or FTP to SD card or to QSPI flash, etc.)


Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

1,624 Views
markus_winkhoef
Contributor II

Hello Mark,

for a new project we are searching for a new controller and in the moment the decision lies between the S7G2 from Renesas and the i.MX RT1064 from NXP.

For our application we will need a FTP server and some UDP connections (the UDP connections can be implemented from NXP SDK).

It woluld be great if you have an example implementation of the FTP server for the i.MX RT1064. I have the development board here at my desk and can test it directly.

Is it possible to write a file directly to a SDCard or an USB-Stick?

Thank you for reply.

Best regards,

Markus

0 Kudos

1,624 Views
mjbcswitzerland
Specialist V

Hi Markus

I can't help with the Renesas but have just tested an i.MX RT 1064 application (on the development board) which I will make available in the next one or two days after I have made a video guide to using it. I need to make a guide because it has a lot of features:
- Parameter system in the spi flash where the IP configuration is setup and saved (long with various other parameters)
- FTP server which allows reading/writing files to spi flash (when no SD card is inserted) or allows reading/writing files on the SD card (when inserted)
- Web server that serves content from spi flash (when no SD card is inserted) or serves content for a user defined directory on the SD card (when inserted)
- Telnet with command line interface
- UDP echo server
- IGMP support for joining multicast groups and exchanging data (via multicast UDP)
- Other TCP/IP features like DHCP, NetBIOS, ping testing (to test other devices on the network)
- DOS like interface for the SD card (via either LPUART or USB-CDC VCOM or Telnet) with FAT analysis tools
- memory display/manipulation tool (including reading, writing, erasing spi flash content via LPUART, USB-CDC or Telnet)
- GPIO control via web server or command line interface
- Administration tool for setting up servers and authentication protection, RTC, monitoring reset causes and testing software resets and watchdog operation
- Statistic monitoring of Ethernet activity and memory utilisation
- USB-MSD to SD card so that the SD card can also be read and written as it appears as an external hard drive to a PC
- 2nd USB-MSD LUM allowing viewing of all i.MX RT internal RAM and also spi flash content
- LPUART to USB-VCOM bridging mode
- OTA Firmware upgrade supported via FTP and web page [optionally encrypted]
- Firmware upgrade supported via LPUART (iHex, Srec), USB-MSD or Kboot HID [optionally encrypted]

Additional details:
- code size 100k running at 600MHz (code and data) from tightly coupled RAM without needing wait states.
- complete operation simulated with Visual Studio or built with IAR or MCUXpresso (GCC)

I'll tell you when it is on-line for testing on reference HW.

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 Kudos

1,624 Views
mjbcswitzerland
Specialist V

Hi Markus

Please note that the application is now available for testing at https://www.utasker.com/iMX/RT1064.html
The description there "may" be adequate to take it into operation and test but more detailed video guides are being worked on to go with it.

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]

0 Kudos

1,624 Views
Sabina_Bruce
NXP Employee
NXP Employee

Hello Markus,

Hope you are doing well.

The examples we have available are provided in the SDK. You will find several implementing TCP/IP examples which will help you get started. However, specifically using FTP there is not an example. These type of custom implementations are to be done by the user.

Another useful reference can be found in this post. 

https://community.nxp.com/message/1268714 

It is a different RT family but the concepts are the same. 

Best Regards,

Sabina

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

----------------------------------------------------------------------------------------------------------------------- 

0 Kudos