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

PIC 18F4550 modifying internal eeprom

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



Joined: 20 Jul 2006
Posts: 29

View user's profile Send private message Send e-mail MSN Messenger

PIC 18F4550 modifying internal eeprom
PostPosted: Wed Jun 17, 2009 1:19 pm     Reply with quote

Hi everyone,

Here I am for sharing a problem I have with PIC18F4550.
The problem is that when I try to run a large program (typically 97% of the rom memory) the pic starts changing the values from some eeprom memory positions. If I run a smaller version of the same program (typically 80% of the rom memory) the problem doesn't appear anymore.

The test is the following:
1. I program the pic with all the eeprom memory filled with the same random value.
2. The pic program shows in a display the value from two positions of the eeprom memory.
3. Then I put the pic in my circuitry and turn it on and off some times.
4. After some time it changes the values from the memory. I can see it in the display and when I take the pic out of the circuitry and read the eeprom memory, I see that other memory positions changed.
5. I repeat the procedure with the smaller code... the problem is not observed anymore.

What's stranger is that in my code there's no routines for changing these memory values. I don't have any idea why these values change when I do the tests.

I use the CCS compiler version 4.013.

Is that a compiler problem? Has anybody ever had this sort of problem?
Any help will be very useful.

Thanks.
Otavio Gomes.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 17, 2009 2:01 pm     Reply with quote

Quote:
I use the CCS compiler version 4.013.

That version is known to have various problems (it's a very early version)
so probably no one wants to help you.
otavio_fisica



Joined: 20 Jul 2006
Posts: 29

View user's profile Send private message Send e-mail MSN Messenger

Different compiler version, same problem
PostPosted: Wed Jun 17, 2009 2:12 pm     Reply with quote

Thanks for your ready answer.

I have just made the same tests with the compiler 4.088 from a friend. The problem still persists. Does anybody have any ideas about this?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 17, 2009 2:16 pm     Reply with quote

Search on the Microchip forum for this:
Quote:
eeprom corruption
http://www.microchip.com/forums/search.aspx
They might have some answers.
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