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 CCS Technical Support

write_program_eeprom/read_program_eeprom bug?there a bug

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







write_program_eeprom/read_program_eeprom bug?there a bug
PostPosted: Sat Apr 02, 2005 5:48 am     Reply with quote

hi,

is there a bug wirh write_program_eeprom or read_program_eeprom in the PCH 3.214 compiler.

I have a bootloader that uses write_program_eeprom and read_eeprom_program to write and reread for verify the data. everything works fine from the bottom address up to address $6000. but exactly at $6000 there occurs a write failure over and over again.
As I realy can't see any problem with the code I would like to ask if there are any known problems (and maybe workarounds) ???
setb2609
Guest







PostPosted: Sat Apr 02, 2005 5:53 am     Reply with quote

btw. the problem occurs with a PIC18F452 - but I haven't tested different devices ...
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Apr 02, 2005 11:38 am     Reply with quote

Quote:
Everything works fine from the bottom address up to address $6000.
But exactly at $6000 there occurs a write failure over and over again.

You didn't show your #fuses statement. Do you have the WRT3 fuse
in your #fuses statement ? If so, it will write-protect that block.
I suggest that you remove it. From the data sheet:
Quote:

WRT3: Write Protection bit (1)
1 = Block 3 (006000-007FFFh) not write protected
0 = Block 3 (006000-007FFFh) write protected
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