• AVR Freaks

Sporadic lost data in EEPROM

Author
fredella
Starting Member
  • Total Posts : 57
  • Reward points : 0
  • Joined: 2006/02/26 14:25:03
  • Location: Torino, Italy
  • Status: offline
2009/06/11 02:14:39 (permalink)
0

Sporadic lost data in EEPROM

Hello, I have developed a devices that use PIC 18F4520. I have sell about 1000 pieces. Sometime the customers report me that the device lost data stored in eeprom. The data is not continually write by the program. The write is very sporadic and made by the user with a panel.
 
Someone had problems like mine?
 

Stefano Fredella
Hardware Designer
Torino ITALY EC
#1

4 Replies Related Threads

    danish.ali
    Super Member
    • Total Posts : 1714
    • Reward points : 0
    • Joined: 2004/11/16 02:02:02
    • Location: Surrey, UK
    • Status: offline
    RE: Sporadic lost data in EEPROM 2009/06/11 07:55:17 (permalink)
    0
    Some PICs had a problem where (presumably at power-down) the value in the eeprom location pointed-to by EEADR was corrupted.

    The workaround was:
    (1) Allocate a specific "scratch" location in eeprom - I use location 0.
    (2) After eeprom-writing has completed, set EEADR to point to this "scratch" location.
    (3) Remember also to point EEADR away after a read from eeprom.

    Are you doing anything like this?
    Could you adapt your code to do it?

    Hope this helps,
    Danish
    #2
    ren
    Super Member
    • Total Posts : 654
    • Reward points : 0
    • Joined: 2006/04/20 16:17:49
    • Location: So Cali
    • Status: offline
    RE: Sporadic lost data in EEPROM 2009/06/11 10:41:14 (permalink)
    0
    Danish,

    Many thanks for posting that solution, we too have a product nearing production that has had several EEPROM corruption incidents in the proto. Although the point at which it executes is our main concern ( too close to an output power change that may cause a reset ), I will definitely use your advice too.
    #3
    asmallri
    Super Member
    • Total Posts : 1864
    • Reward points : 0
    • Joined: 2004/05/26 09:00:05
    • Location: Perth, Australia
    • Status: offline
    RE: Sporadic lost data in EEPROM 2009/06/11 11:26:58 (permalink)
    0
    Make sure you enable the BOR fuse to force the PIC to be held reset at low VDD, this stops the PIC crashing as it is powered down. Otherwise when the PIC crashes it could over write EEPROM.

    Regards, Andrew

    http://www.brushelectronics.com/index.php?page=software
    Home of Ethernet, SD Card, and Encrypted Serial and USB Bootloaders for PICs!!
    #4
    fredella
    Starting Member
    • Total Posts : 57
    • Reward points : 0
    • Joined: 2006/02/26 14:25:03
    • Location: Torino, Italy
    • Status: offline
    RE: Sporadic lost data in EEPROM 2009/06/22 02:52:40 (permalink)
    0
    Thank very much!I try!!

    Stefano Fredella
    Hardware Designer
    Torino ITALY EC
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5