Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #510210

Re: Hamming ECC

From David Brown <david.brown@hesbynett.no>
Newsgroups sci.electronics.design
Subject Re: Hamming ECC
Date 2018-07-06 11:05 +0200
Organization A noiseless patient Spider
Message-ID <phnbc6$vli$1@dont-email.me> (permalink)
References <8oq%C.202594$mD.79637@fx31.iad>

Show all headers | View raw


On 05/07/18 17:00, bitrex wrote:
> Do you use Hamming/Reed Solomon/etc. codes to check for data errors when
> writing/reading e.g. large battery-backed SRAMs or Flash memory that's
> are used for non-volatile storage of user data for significant periods
> of time (couple weeks)? Or do you find single-bit errors in RAM reads to
> be not much of an issue in practice?
> 
> I'm considering writing the external memory in pages of say 8 bytes with
> 8 nibbles of Hamming code and 1 byte of parity bits for single-bit
> correction 2 bit detection. In this application a single-bit error would
> not be life-threatening or anything but significantly annoying for the
> user, the data isn't intrinsically fault tolerant to some degree like
> say image or audio data.

For configuration data and the like, I usually have a CRC checksum and
dual copies of the data.  The most likely failure mode is a power-off or
reset while writing one copy of the data, rather than corruption of the
memory, but it would handle that too.

It is a different matter if you have NAND flash - there bit-level
failures are to be expected and you will need some sort of ECC.

If you really expect problems, or have high-value data, then you may
want more than one flash chip in case of total failure.  I've done that
on a board for extreme environments - there were several flash chips and
data was stored in RAID-5 stripes (with checksums on each block).  I
didn't see any stripe failures in practice.

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Hamming ECC bitrex <user@example.net> - 2018-07-05 11:00 -0400
  Re: Hamming ECC Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2018-07-06 09:31 +0100
  Re: Hamming ECC David Brown <david.brown@hesbynett.no> - 2018-07-06 11:05 +0200
    Re: Hamming ECC bitrex <user@example.net> - 2018-07-06 22:15 -0400
      Re: Hamming ECC gnuarm.deletethisbit@gmail.com - 2018-07-06 20:03 -0700
        Re: Hamming ECC bitrex <user@example.net> - 2018-07-06 23:41 -0400
          Re: Hamming ECC bitrex <user@example.net> - 2018-07-06 23:48 -0400
        Re: Hamming ECC bitrex <user@example.net> - 2018-07-07 00:17 -0400
          Re: Hamming ECC +++ATH0 <news@ringpiece.local> - 2018-07-11 20:47 -0700
            Re: Hamming ECC bitrex <user@example.net> - 2018-07-12 00:12 -0400
              Re: Hamming ECC Rob <nomail@example.com> - 2018-07-12 08:15 +0000
  Re: Hamming ECC Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-06 12:59 +0100

csiph-web