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

Lock up during EEprom write

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



Joined: 09 Jul 2004
Posts: 70

View user's profile Send private message

Lock up during EEprom write
PostPosted: Thu Jul 10, 2008 11:08 am     Reply with quote

I am developing a program that will load the eeprom of the chip on the first power up after the program has been loaded. I am using a PIC18F8722 and the internal_eeprom.c program in the ccs folders to accomplish this. This was working fine until i reach a location in the eeprom over ~200. Since the eeprom is 1024 bytes, i should have 1024 locations to write to, so i am not sure what the issue is. If i have the program loading up the first 200+ locations it just hangs up during the write process. My program is way to large to post here, but i was hoping someone else might have used the internal_eeprom.c and might have some clues. I did change the INT_EEPROM_ADDRESS to a int 16 from an INT8. Could i be trying to write too much to the eeprom at one time or do i need delays between the writes?
Compiler V4.062
Sample

Code:

pacres_A=0;
   write_float_eeprom(181,pacres_A);
   pacres_B=0;
   write_float_eeprom(185,pacres_B);
   pacres_C=0;
   write_float_eeprom(189,pacres_C);
   pacres_D=0;
   write_float_eeprom(193,pacres_D);
   pacres_E=0;
   write_float_eeprom(197,pacres_E);
   pacres_F=0;
   write_float_eeprom(201,pacres_F);
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 10, 2008 11:40 am     Reply with quote

What happens if you strip your program down so that it contains only
this code ? Does it still fail ? If so, post the program.
Code:
pacres_F=0;
write_float_eeprom(201,pacres_F);
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