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.

AM335x: NAND-Boot with ECC by NAND?

Hi everyone,

the Boot_ROM supports booting from NAND-devices which handle the ECC internally. Some NANDs (like the MT29F1G16ABBDAHC from Micron) require a SET FEATURES (EFh) command to handle the ECC internally.

Does the Boot-ROM execute this SET FEATURES command if SYSBOOT[9] is set to 1?

TAI, Rudi

  • Hello Rudi,

    According to the TI reference manual for the AM335x, when the SYSBOOT[9] pin is tied high, the internal ROM code will not use the GPMC ECC, and will instead assume that the NAND's internal ECC will be used. It does not mention anything about the additional required steps for the MT29F1G16ABBDAHC which requires you set SET FEATURE to enable internal ECC, or the additional READ STATUS (70h) command after a read to determine whether an uncorrectable error occurred with the internal ECC.

    As you know, the ROM code cannot be modified, and you are limited to what it supports if you require your bootstrap to be protected by an ECC routine. Since the romcode on the AM335x already supports BCH 8b/sector (which is done using the GPMC hardware when SYSBOOT[9] is 0) by default, this is the preferred method.

    Best Regards,

  • Thank you for this clarification!

    Best Regards,

    Rudi

  • the romcode on the AM335x already supports BCH 8b/sector (which is done using the GPMC hardware when SYSBOOT[9] is 0) by default。

          Do you mean that the starterware support that ?

          I am testing the starterware BCH8 ECC ,but it's not successful.

         when i write nand page with the BCH8 ECC in the block0~block3, the rom code did not recognize that.

  • Hello ge shuihuan

    unfortunately I don't know much of Starterware.

    Rudi