View previous topic :: View next topic |
Author |
Message |
georpo
Joined: 18 Nov 2008 Posts: 281 Location: Athens, Greece.
|
web server CCS Example 15 |
Posted: Sun Feb 07, 2010 3:12 pm |
|
|
Hi
I have a OLIMEX PIC-WEB which has a 18F452 + enc28j60 and also has a AT45DB011 1Mbit SPI flash memory.
I got example 15 (A webserver that accepts GET and POST commands) working and I now have a basic understanding of what is happening in the code, I can modify the contents of the page etc.
The question is how can I store the html page in the flash memory and have the PIC read from there?
The PIC program memory can not store big web pages.
Any suggestions?
Thanks! |
|
|
bkamen
Joined: 07 Jan 2004 Posts: 1615 Location: Central Illinois, USA
|
|
Posted: Sun Feb 07, 2010 9:17 pm |
|
|
If you look in the TCPIP source directory, you'll see something called MPFS support.
(Mine is located in: C:\Program Files\PICC\TCP-IP\PIC Examples Source\mpfs)
It allows compressing the webpages into a single file which can then be stored on an external memory like a FLASH or EEPROM.
Read up on it and it'll all make sense to you.
Cheers,
-Ben _________________ Dazed and confused? I don't think so. Just "plain lost" will do. :D |
|
|
georpo
Joined: 18 Nov 2008 Posts: 281 Location: Athens, Greece.
|
|
Posted: Mon Feb 08, 2010 6:51 am |
|
|
Thanks for the tip, I will check it.
But what about the driver for the flash memory?
Both the memory and the enc28j60 are on the same SPI bus and I do not want to interfere with it.
Maybe at the time I use the SPI bus the pic wants to send/read to the enc28j60. |
|
|
|