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

write_eeprom not working with PIC18F6722

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



Joined: 29 Jun 2007
Posts: 62
Location: Raleigh, NC

View user's profile Send private message Visit poster's website

write_eeprom not working with PIC18F6722
PostPosted: Tue Aug 07, 2007 7:57 pm     Reply with quote

As far as I can tell, the write_eeprom function does not work on the PIC18F6722.

I've checked and double-checked my code, and I'm displaying address and data values on an LCD.

A #ROM statement correctly programs eeprom (from the hex file), and I can successfully read and display values with the read_eeprom function.

Anybody experiencing similar problems? I'm using compiler version 4.049.

Thanks,
Jim
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Aug 07, 2007 8:08 pm     Reply with quote

Post a small test program that shows the problem.
Example of a test program:
http://www.ccsinfo.com/forum/viewtopic.php?t=17590&start=1
soundscu



Joined: 29 Jun 2007
Posts: 62
Location: Raleigh, NC

View user's profile Send private message Visit poster's website

PostPosted: Wed Aug 08, 2007 3:18 am     Reply with quote

My bad.

Eeprom write is working fine. But the ICD overwrites all the eeprom with FFs whenever it reprograms the part. Is there a way to turn that off so it only writes new program code, not data eeprom?

I'm posting this question as a new thread...

Jim
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