Ethernet TCP/IP Source Code Driver Project
Section 07. Web Pages Converter PC Application

07. Web Pages Converter PC Application

a) Using The Application

The included Web Pages Converter Application will read all of your web site files and convert them into the selected format ready for use in your project.

Your file and directory names must use C compliant names, as they are used in the C header file to point to that file.

Ensure that if you sites organisation uses sub directories (for instance if you’ve located your image files in a sub directory called \images) you are only using 1 level of subdirectories, as this application will not include files nested any deeper than this.

1. Run the Web Pages Converter Application:

2. Select the directory that contains the root file(s) that make up the web content / web site.

3. Select the output file Type:

Select ‘C Header File’ to produce a single C header file which will contain each file as a constant array.

Select ‘Binary File’ to produce a binary file that you may then copy into some form of external memory on your hardware. A C header file is also produced with the byte start address of each file.

4. If you have selected a ‘C Header File’ then check the ‘C Constant Declaration String’ is correct for your compiler. This is the text string that will be inserted before each file name in the constant declaration.

5. Press ‘Convert Files’ and the output file(s) are created in a new sub directory called ‘\wpc_output’. Copy the .h file to your projects main directory and its ready for use in your application. If you created a C Header File you just need to compile and the content will be available. If you selected Binary File you just need to compile and copy the binary file into your memory device before the content will be available.