Hi All:
I am using c6421 and want to boot from nand.I wrote code in order to burn the ais binary file to nand flash.But boot without success.
My nand flash is 512+16 page size. On every 512 Bytes write, I read the NANDF1ECC register,and write it to the 16 bytes spare region.
ECC0 = BIT0-BIT7 OF NANDF1ECC
ECC1 = BIT8-BIT15 OF NANDF1ECC
ECC2 = BIT16-BIT23 OF NANDF1ECC
ECC3 = BIT24-BIT31 OF NANDF1ECC
The order I place ECC in the nand flash spare region is
------------------------------------------------------------------
ECC0 | ECC1 | ECC2 | ECC3 | 12 Byte "0xFF"
--------------------------------------------------------------------
Is it in right order that the bootloader can recognize?