This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: BCH16 questions

Part Number: AM3358


Hi team,

The customer's inquiry:

 I will use AM3358BZCZ80 with NAND Flash.
- NAND info : (2 K   128 spare) Bytes / 4096 Blocks

I checked 'am335x_evm.h' file and there's some information for ECC below.
----
/* NAND : 512MB spare : 128*/
#define CONFIG_SYS_NAND_OOBSIZE      128
#define CONFIG_SYS_NAND_ECCBYTES   26
#define CONFIG_NAND_OMAP_ECCSCHEME  OMAP_ECC_BCH16_CODE_HW
----
And this is my question.
Is it correct that it use the function 'encode_bch' in bch.c to calculate 26bytes ECC?
if it's correct, what's the value for 'len(data length in bytes)'?

I am not familiar with the ECC, please help him.