Building and Running Sample Application
This section describes all the steps required to build a POP3c-based application. The instructions provided in this section are not intended for any particular toolchain, but instead are described in a generic way that can be adapted to any toolchain.
The best way to start building a POP3c-based project is to start from an existing µC/TCP-IP project.
Working project with µC/TCP-IP
The first step before including the µC/POP3c is to have a working project with the µC/TCP-IP. As previously mentioned, Micriµm may offer starting example with µC/OS-III kernels and µC/TCP-IP and even with µC/POP3c for many evaluation boards.
If no project that include µC/TCP-IP is available, you should follow the µC/TCP-IP - Getting Started Guide to start with a working TCP/IP project before starting integrating µC/POP3c. Then you can follow the following steps to build and run your first µC/POP3c sample application.
Including Additional Modules to the Project
Once you have a working project with your RTOS and µC/TCP-IP additional modules are needed by the Micriµm POP3 client that are not necessarily already included in your project. Therefore, be sure to add µC/CPU and µC/LIB to your project.
Refer to the following manuals for further information about MIcrium modules:.
Optional module
It is possible to the µC/POP3c to resolve servers address with a DNS client such as µC/DNSc. If you want to use it you have to include µC/DNSc to your project
Including µC/POP3c Source Code
Include the following files in your project tree from the µC/POP3c source code distribution, as indicated in Figure - µC/POP3c Source Code.
As indicated in the Figure - µC/POP3c Source Code, all the files in the Source folder must be added to your project tree. File under the folder Cmd can be added if µC/Shell is already included in your project.
Compiler settings
Finally, add the following include paths to your project’s C compiler settings:
\Micrium\Software\uC-POP3c
\Micrium\Software\uC-TCPIP
\Micrium\Software\uC-Shell (optional if uC/Shell is used)
\Micrium\Software\uC-DNSc (optional if uC/DNSc is used)
Copying and Modifying Template Files
Copy the files from the uC/POP3c configuration folder into your application as illustrated in Figure - Copying Template Files.
pop3-c_cfg.h
define µC/POP3c module static parameters. Refer to section Module Configuration for more details on all the configurations inside templates files.