The invention provides a two-stage
error correction coding method and
system applied to a storage
system in an on-
satellite severe environment. The method and the
system mainly aim at solving the problem that when the storage system is attacked by high-energy particles in a space
irradiation environment, a plurality of
single event upset errors occur in a storage unit. The method comprises the following steps: 1, selecting an intra-word and inter-word coding scheme according to the characteristics of an on-board memory; 2, performing intra-
character coding on each character; 3, after intra-word codes are generated, performing inter-word coding; 4, performing intra-word error detection in the decoding operation to obtain a corresponding syndrome; and judging whether the
code word has an error or not according to the obtained syndrome, and if so, carrying out an error correction process; 5, in the error correction process, firstly performing intra-word restoration, and if the restorationcannot be passed, entering an inter-word error correction stage; and 6, an inter-character error correction stage: reading other characters in the same group of stripes, performing error detection, error correction and intra-character
recovery, and if the other characters in the same group can be correctly recovered, performing inter-character
verification to recover error stripes.