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.

AM3352: BIN2NAND which supports BCH16

Part Number: AM3352

now i have tool,bin2nand which support BCH16

i use it ,found some question .

Bin2nand_v1_2_0 -spare 128 -bch 16 -block 64 NAND_boot_ti.bin convert1.bin

I call bin2nand from the above command line,it have some question?    

for example.  address=00000000   ,data is 50 b4 00 00 00 04 2b 04 6c 00 9f e5 db f0 21 e3

after use bin2nand, the new file   address=00000000 data is 50 d0 94 00 00 00 04 2f 40 6c 00 c2 9f d1 85

address=00000000  the data is should be no change,and other address data is aslo wrong.

so if add ECC data ,ADDRESS=00000000-0X00000800 the data is should not change .

and Address 0x00000800  -0x00000870 is add ecc data

  • I'm not sure why this is happening.  I don't see this on any test files i ran.  Can you post your NAND_boot_ti.bin?

    REgards,

    James

  • i can give you this file(not post).and  How do I send the file to you? email?

  • Email is fine.  i think you have been emailing a co-worker of mine,  You can send it through him.

    REgards,

    James

  •  i have  emailing a co-worker of yours,i send nand_boot.bin to hime  ,and  he give me  convert1.bin file with add BCH16 ECC data .

     like picture ,

    • The data in the red box should be the same.

  • I'm confused because the convert1.bin i sent you does not match yours

    Can you run the executable again?  This is what mine looks like:

    C:\bin2nand\test>bin2nand_v1_2_0 -spare 128 -bch 16 -block 64 NAND_boot_ti.bin convert1.bin

    **********************************************************************************

           (C) 2013 TEXAS INSTRUMENTS. All rights reserved

                      Image Formating Tool for NAND Memories

     

    **********************************************************************************

     

      NAND type.................. RAW

      NAND page size............. 2048

      NAND spare area (bytes).... 128

      NAND block size (pages).... 65

      Correctable sectors........

      Uncorrectable sectors......

      Source file................ NAND_boot_ti.bin

      Output file................ convert1.bin

     Input image size........... 116

      Output image size.......... 133120

      Generating image...

      Page: 064/064 Sector: 4/4

      Done.

    Also be sure you are running the right version:

    C:\bin2nand\test>bin2nand_v1_2_0

    Usage: bin2nand [options] input output
    bin2nand version: v1.2
    Options:
    -type raw|one - NAND type, default: raw
    -page 512|2048|... - Page size, default: 2048
    -spare 16|64|218|... - Size of the page spare area, default: 64
    -block 16|32|64|128 - Block size (number of pages), default: 64
    -verbose - Print ecc's.
    -corr <sector> - Generates correctable error(s).
    -uncorr <sector> - Generates uncorrectable error(s).
    -bigspare - Spare area size = page size (Denali).
    -badblock - Marks blocks as invalid.
    -bch 8|16 - Use BCH as ECC algorithm.
    Error correction capability is 8 or 16 bits only.
    If not set, then no ECC is used.

    Regards,

    James

  • The file I opened was the one your colleague sent me,It's strange to see different data when we open it.

      i train it again use binnand_v1_2_0 ,the problem still exist。Can you ask your colleague to verify it?Check the details, and I'll verify when he succeeds.

      regard 

     mengdong

  • Hi Mengdong,

    First of all, I opened file convert1.bin that I sent to you and saw this:

    This is different from what you saw in your Notepad++ editor. Can you double check if you were looking at the one that I sent to you or the one you generated?

    Secondly, I ran the tool to generate the BCH16 data as below:

    D:\Sitara\apps\bin2nand\bin2nand_1.2>bin2nand_v1_2_0 -spare 128 -bch 16 -block 64 NAND_boot_ti.bin NAND_boot_ti_bch16.bin
    **********************************************************************************
           (C) 2013 TEXAS INSTRUMENTS. All rights reserved
                      Image Formating Tool for NAND Memories
    
    **********************************************************************************
    
      NAND type.................. RAW
      NAND page size............. 2048
      NAND spare area (bytes).... 128
      NAND block size (pages).... 65
      Correctable sectors........
      Uncorrectable sectors......
      Source file................ NAND_boot_ti.bin
      Output file................ NAND_boot_ti_bch16.bin
      Input image size........... 116
      Output image size.......... 133120
      Generating image...
      Page: 064/064 Sector: 4/4
      Done.
    

    The output I got is identical to file convert1.bin which was generated by James and sent to you. Please make sure you run the tool with correct options.

    Regards,

    Jianzhong

  • i found question is my notepad++ show it wrong。 thanks again.

  • Ok. Thanks for letting us know.