Convert website interface content to MPFS2 file system image

The page documents how to convert a folder of web content ready for uploading to your Plug & Program embedded web server

Background

The files making up the web interface  are stored on the Plug & Program embedded web server in the Microchip MPFS2 file system format.  This is analogous to the file system used on camera memory cards (FAT16, FAT32) but is much simpler

Conversion is a simple single step process that converts a source folder of web content into a single container file  *.bin (similar to a .zip file in that it contains multiple folders & files) ready for uploading to your embedded web server

Restrictions

When creating your website content these rules must be observed:

  • Create your website content (html, images etc) in a single source folder
    • sub folders are allowed
  • for each file the path to each file including the full filename must be < 100 characters
    • for example, if your website content is in c:\my website\ and c:\my website\images\icon.gif exists, it is ‘images\icon.gif’ that must be < 100 characters
    • the Plug & Program conversion utility will warn you of any files where the path & filename >= 100 characters
  • the converted *.bin upload file must be < 4MBytes to enable it to fit on the PNP-MEMFL32 flash memory module

Conversion

Download and run the Plug & Program (note requires Microsoft Dot Net 3.5 to be installed)

The utility will prompt you for the source folder and the output destination and filename

After selecting these click Generate.  This runs the conversion process:

The resulting .bin file can be uploaded directly to your Plug & Program embedded web server by going to http://ip_address/mpfsupload where ip_address is the ip_address displayed on your Plug & Program embedded web server lcd display ( PNP-LCD16X2 module)

Firmware Developers please note:

The Plug & Program output *.bin file is not compatible with the standard MAL (Microchip Application Library) TCPIP Stack.  It is intended to be used with a version of the stack that has had HTTPPrint callbackid offsets dependancy removed .  This includes the Plug & Program supplied firmware.

If you have installed the MAL (Microchip Application Library) TCPIP Stack, use the included MPFS2.exe utility to generate your MPFS2.bin files

Note that the Plug & Program supplied firmware is still fully compatible with MPFS2.bin file system images generated by the Microchip supplied MPFS2.exe utility