加入收藏夹
域名:www.kincony.com    www.hificat.com       English Version || 公司简介|| 汇款须知 || 汇款确认及留言 || 论坛 || 淘宝网店


PIC以太网开发板——基于微芯最新ENC28J60以太网控制器

Microchip TCP/IP Stack v3.75.6 协议栈说明介绍

 

Uploading the HTTP documents

If you selected the MPFS_USE_EEPROM option to store the HTTP documents in an external serial EEPROM, you must upload the file system image by using FTP or via the serial command interface with XMODEM.

First you must create a MPFS binary image of the HTTP server documents, to do so you must use the MPFS.EXE utility passing as arguments the directory where the source documents are located (the example website documents are in the html directory) and the name of the output file that will be later uploaded.

If your design includes the new Microchip 25LC1024 serial EEPROM, you must create the image using the MPFS.EXE /l option (24 bit addressing). Remember also to include the USE_25LC1024 macro in your hardware configuration file to include the appropriate code and settings for this memory device.

Figure below shows a command prompt window after generating the MPFS image.


Double check that your image file does not exceed the available capacity of the EEPROM memory, the stack reserves the first 64 bytes to save the application configuration information and the rest of the memory is available for the HTTP documents image (which includes a simple File Allocation Table).

Nor FTP or the XMODEM uploading options check for available memory space, if you exceed the actual available memory, the code will wraparound and start writing over the previously written FAT and documents.

The current distribution includes MPFS images generated from the sample HTTP documents located in the html directory.

The file mpfsimg.bin is the MPFS binary image with the standard 16 bit addressing (for a 25LC256 or 24LC256/512) and the mpfsimg_l.bin the binary image with 24 bit addressing (for a 25LC1024), both files are located in the current version top directory.


Uploading the HTTP documents binary image with FTP

To upload your image to memory via FTP just use the FTP command available in any Windows or Unix machine, enter the username (the default is ftp) and the password (the default is microchip) and then execute the put command providing the file name of your image file.

Figure shows the command prompt window after transferring the MPFS binary image using FTP.


--->>>返回首页

以上部分内容转载于网上,如有涉及到版权问题,请即通知本人删除 ICP备05019516号
联系地址:浙江省杭州市拱墅区普金家园11-3-702 徐玮 邮政编码:310015 Email:hificat@163.com xu169@sina.com
电话:0571-85956028 传真:0571-88230070 手机:13185018567 QQ:420951892 MSN:hificat@hotmail.com
杭州晶控电子有限公司 版权所有 COPYRIGHT2003——2007 HANGZHOU KinCony ELECTRONICS CO.,LTD All rights reserved