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.

c6421 boot from nand flash



Hi,all!I am using c6421,and want to get c6421 boot from nand flash. Nand flash is K9F1G08U0B which Page Size is 2KBytes and 64 spare Bytes  。

I follow the step bellow:

1、Use GenAIS to generate AIS file。The command I use is        genAIS.pl -otype bin -i c6421test.out -o c6421test.ais -bootmode nand -crc 0 -cfg c6421.cfg。

      ------------------------------------------------------------------------------------------------------------------------------------------------------------- 

      c6421.cfg 

      0x5853590D  #Function Execute Command
      0x00030000  #   Selects PLL configuration function, with 3 arguments
     0x0000000F  #   PLLM value
     0x00000000  #   PLLDIV 0
     0x00000001  #   Clock source
     0x5853590D  #Function Execute Command
     0x00050001  #   Selects EMIFA configuration, with 5 arguments
     0x04202108  #   AB1CR control register mask
     0x04222118  #   AB2CR control register mask
     0x04222118  #   AB3CR control register mask
     0x04222118  #   AB4CR control register mask
    0x00000001  #   NANDFCR control register mask
    0x5853590D  #Function Execute Command
    0x00090002  #   Selects DDR memory configuration, with 9 arguments
    0x0000001F  #   DDR PLLM
    0x00000002  #   PLL SRC
    0x0000000B  #   DDR CLLK DIV
    0x00000001  #   VBPE CLK DIV
    0x40006405  #   DDR Control register mask
    0x0013CA32  #   SDRAM Config register mask
    0x1E002180  #   SDRAM Timer 0 register mask
    0x0000C702  #   SDRAM Timer 1 register mask
    0x0000040D  #   SDRAM Refresh control register mask

    --------------------------------------------------------------------------------------------------------------------------------------------------

2、 I want to place the AIS file at block 1 ,and starts from page 0.According to SPRAAK5A,Page 33. I modify the follwing regions

       ---------------------------------------------------------------------------------------------------------------------

       0x00000014 :  Place holder reserved for number of pages over which image spans

       0x00000001  :   Place holder for block where image starts

       0x00000000  :   Place holder for page on which image starts,
      --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3、Then use HEXAIS_642x to generate hex file,The command I use is  HexAIS_C642x.exe -ais2hex c6421test.ais。
4、Write hex file to nand flash。The ECC is stored in last 64Byte. The order
         -------------------------------------------------------------------------------------------------------------------------------
        |   4Byte ECC|12Byte 0xff |   4Byte ECC|12Byte 0xff |   4Byte ECC|12Byte 0xff |   4Byte ECC|12Byte 0xff|
        ---------------------------------------------------------------------------------------------------------------------------------
    boot unsuccess,anybody who can help?