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
Posted: Wed Jun 17, 2009 2:01 pm
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
Different compiler version, same problem
Posted: Wed Jun 17, 2009 2:12 pm
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
Posted: Wed Jun 17, 2009 2:16 pm
Search on the Microchip forum for this:
Quote:
eeprom corruption
http://www.microchip.com/forums/search.aspx
They might have some answers.
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