User manual

Uploading pages to the server
There are 2 easy ways to upload pages to the server, but you will always need to convert the files you
want to upload in a MPFS file format. One other way is to include the web page on the source code and link it in
a project, but if we did it in this way we won’t use the external Flash (AT45DB011) included in the platform
wasting program memory, that is reason this method will not be included in this manual.
Microchip File System (MPFS)
The implemented HTTP server uses the MPFS simplified file system to store the pages on the
embedded system. That is why it is necessary to transform the files to that file system before uploading them.
This is done using a program included in PIC-WEB software called “MPFS2.jar”. It is located at: <extraction
dir>\PIC-WEB 5.42 UEXT Full\Microchip\TCPIP Stack\Utilities\MPFS2.jar.
Let’s create a simple “Hello World” page and upload it in to the HTTP server.
First of all it’s necessary to create a directory on your PC where to put the files you want to upload to
the web server. The “index.htm” is a must have file because that is the default page read by the server. We will
also upload a picture “olimex.gif” (get it from the site for example). The code of the page is the simplest
possible:
Next thing to do is just start the MPFS2.jar utility and set up the required fields. Here is a screenshot of
one possible configuration:
Page 22 of 36