0
1
2
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
Data
Syndrome9
Syndrome8
Syndrome7
Syndrome6
Syndrome5
Syndrome4
Syndrome3
Syndrome2
Syndrome1
Syndrome0
User defined
//Convert eight 10-bit codes to ten 8-bit words:
Syndrome0 = syndromes10[0] & 0xFF;
Syndrome1 = ((syndromes10[1] & 0x3F) << 2)
| ((syndromes10[0] & 0x300) >> 8);
Syndrome2 = ((syndromes10[2] & 0x0F) << 4)
| ((syndromes10[1] & 0x3C0) >> 6);
Syndrome3 = ((syndromes10[3] & 0x03) << 6)
| ((syndromes10[2] & 0x3F0) >> 4);
Syndrome4 = ((syndromes10[3] & 0x3FC) >> 2);
Syndrome5 = syndromes10[4] & 0xFF;
Syndrome6 = ((syndromes10[5] & 0x3F) << 2)
| ((syndromes10[4] & 0x300) >> 8);
Syndrome7 = ((syndromes10[6] & 0x0F) << 4)
| ((syndromes10[5] & 0x3C0) >> 6);
Syndrome8 = ((syndromes10[7] & 0x03) << 6)
| ((syndromes10[6] & 0x3F0) >> 4);
Syndrome9 = ((syndromes10[7] & 0x3FC) >> 2);
Syndromex : Write to NAND flash(8bit Data)
syndromes10[x] : Calculated by IP
Algorithm to store
10 bit codes in 8 bit words
ARM ROM Boot Modes
www.ti.com
Figure 11-4. 4-Bit ECC Format and Bit 10 to 8-Bit Compression Algorithm
Boot Modes
154
SPRUFX7 – July 2008