CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

web server CCS Example 15

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
georpo



Joined: 18 Nov 2008
Posts: 274
Location: Athens, Greece.

View user's profile Send private message

web server CCS Example 15
PostPosted: Sun Feb 07, 2010 3:12 pm     Reply with quote

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: 1611
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sun Feb 07, 2010 9:17 pm     Reply with quote

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: 274
Location: Athens, Greece.

View user's profile Send private message

PostPosted: Mon Feb 08, 2010 6:51 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group