Installing FTPc
Prerequisites
Before running your first application, you must ensure that you have the minimum set of required tools and components:
- Toolchain for your specific microcontroller.
- Development board.
- ĀµC/TCP-IP stack must be installed properly (a running project). SeeĀ Installing the ĀµC/TCP-IP StackĀ for further details on how to install ĀµC/TCP-IP.
- Source code for ĀµC/TFTPc.
Additional Modules
ĀµC/FTPc depends on other modules to run.Ā It requires the presence of a RTOS; the modules for ĀµC/CPU, ĀµC/LIB, ĀµC/Common and ĀµC/TCP-IP.
If you are using one of the two MicriĀµm OS's, complete documentation can be foundĀ for ĀµC/OS-IIĀ andĀ ĀµC/OS-III. Refer to those guides for more information on requirements, installation, configuration and running of each RTOS.
The µC/CPU module regroups the processor's hardware-dependent code.Ā It includes portsĀ for the many CPU architectures MicriĀµmĀ supports. Therefore, you must use the port corresponding to your specific CPU.
The µC/LIB module is MicriĀµm's run-time library,Ā implementing the most common standard library functions, macros, and constants.
µC/Common regroups modules use commonly by all the Micrium products. It must therefore also be include in your project.
TheĀ µC/TCP-IP stackĀ is a compact, reliable, high-performance TCP/IP protocol stack which provides the socket for the FTP application layer.
ĀµC/FTPc can be used with or without a File System. The example application of the starting guide use the MicriĀµm µC/FS module. A common File System API is used for all network applications that required a FS. It is located in the FS directory of ĀµC/TCP-IP (TCPIP Network File System Abstraction Layer). A port for the ĀµC/FS v4 is available and it is possible to add new ports to interface with different File SystemsĀ .
Downloading the Source Code
ĀµC/FTPc can be downloaded from the Micrium repository along with the other required modules.
Installing the Files
Once all the distribution packages have been downloaded to your host machine, extract all the files to your computer (for instance,Ā at the root of your C:\ drive). The package may be extracted to any location. After extracting all the files, the directory structure should look as illustrated below in Installing FTPc#Figure - FTPc Folder Tree. In the example, all MicriĀµm products sub-folders will be located inĀ C:\Micrium\Software\
. The MicriĀµm ĀµC/OS-III RTOS has been chosen for this example as well as ĀµC/FS.