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

MPFS image in eeproms - fixed

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



Joined: 15 Oct 2010
Posts: 19

View user's profile Send private message

MPFS image in eeproms - fixed
PostPosted: Sun Nov 21, 2010 7:34 am     Reply with quote

Hello,

I have a tcpip webserver project in pic 18f4620 and pass all webpages from rom pic to eeprom with MPFS image, but I get always 500 error in browser.
I create the image by: "mpfs /b /r0 /ll ../pages mpfsimg.bin" get +/- 5k and flashed it in 24c64 (8kbytes eeprom). I try to debug what goes on the don't show the page.
I try to make some debug about this e get MPFS_INVALID.
i set #define MPFS_WRITE_PAGE_SIZE (32)
i set #define MPFS_START_POSITION 0
I try by ftp to write the image, he uplaods, but get the same error.
I tested write and read from eeprom and he works.
Is correct writing the mpfsimg.bin image in eeprom by one eeprom programmer?

Please point me in the correct way.
Regards,
Vasco Santos


Last edited by OpenSys on Sun Nov 21, 2010 12:54 pm; edited 1 time in total
OpenSys



Joined: 15 Oct 2010
Posts: 19

View user's profile Send private message

PostPosted: Sun Nov 21, 2010 11:01 am     Reply with quote

good news, now i can read a web page, but have errors, seams that some of the code was removed, i redefine with 32:

#define MPFS_START_POSITION 32

with "mpfs /b /r0 /ll ../pages mpfsimg.bin"

and a web page shows up good Smile

but some html and images code was missed, when page show up, there is any var that can limit more the MPFS_START_POSITION ?


VS
OpenSys



Joined: 15 Oct 2010
Posts: 19

View user's profile Send private message

PostPosted: Sun Nov 21, 2010 12:57 pm     Reply with quote

Fixed.

Just comment the old value of:
Code:

#define MPFS_RESERVE_BLOCK   (END_OF_MPFS_POINTER+4)

and sets
Code:
#define MPFS_RESERVE_BLOCK  0

VS
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