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.

Can't boot from NAND

Hi All

  I write a blink Led program to test the bootloader.  I use mcsdk_2_00_04_16   ccs_base_5.0.3.00023  evm6678LE

 Following is what I have done.

A、 User Program (boot mode = EMIF16 and Emulation Boot)

 1、Write the led blink program.

6560.LedTest.rar

2、out to bin conversion

  use the tools offered by cg_xml and ccs compiler.

  tiobj2bin.bat LedTest.out LedTest.bin ofd6x.exe hex6x.exe mkhex4bin.exe  

  3、write the bin file to NAND flash (I also tried to wirte the out file to the NAND,but still can't work)

  use the mcsdk_2_00_04_16\tools\writer\nand\evmc6678l\bin\nandwriter_evm6678l.out

   The content of the nand_writer_input.txt

   file_name  = LedTest.bin
   start_addr = 16384

 B、Write EEPROM (boot mode = EMIF16 and Emulation Boot)

1、copy the i2crom_0x51_c6678_le.bin from "mcsdk_2_00_04_16\tools\boot_loader\ibl\src\make\bin" to "mcsdk_2_00_04_16\tools\writer\eeprom\evmc6678l\bin"

2、use the mcsdk_2_00_04_16\tools\writer\eeprom\evmc6678l\bin\eepromwriter_evm6678l.out

     the content  of the eepromwriter_input.txt

    file_name  =  i2crom_0x51_c6678_le.bin
    bus_addr   = 0x51
    start_addr = 0
    swap_data  = 0

 C、Configure IBL (boot mode = EMIF16 and Emulation Boot)

1、modify the file i2cConfig.gel

     ibl.bootModes[1].u.nandBoot.bootFormat        = ibl_BOOT_FORMAT_BBLOB;    older

     ibl.bootModes[1].u.nandBoot.bootFormat        = ibl_BOOT_FORMAT_ELF;          now

    in the function setConfig_c6678_main()

2、connect core0 and load the program mcsdk_2_00_04_16\tools\boot_loader\ibl\src\make\bin\i2cparam_0x51_c6678_le_0x500.out

     run the program

     load the gel file  i2cConfig.gel  and run Srcipts->EVM c6678 IBL -> setConfig_c6678_main GEL script

     several seconds later hit the Enter key to complete the IBL configuration.

D、Test

   1、change the boot mode

    Set the dip switches (pin1, pin2, pin3, pin4) to:
    SW3(off, off, on, off),
    SW4(on, off, on, on),
    SW5(on, on, on, off),
    SW6(on, on, on, on)

    2、power on the evm board

      But the Led lights on the board didn't blink.


 

 

  • Hi Eric,

    First suggestion will be to move to MCSDK2.0.5. The writer and IBL are more stable in this one. I am trying to verify the NAND boot on this MCSDK just to make sure. But seeing other modules work in this version, i have more confidence in this version.

    Thanks,

    Arun.

  • Hi Arun

      Thank you for you reply.

      Ok , I'll download the MCSDK2.0.5.  

       And I want to know , the LED blink program didn't work correctly, whether it is caused by the IBL or I have other operation errors?

  • Hi Arun

       I have solved this problem.  I didn't changed the IBL, I use the NAND write program of MCSDK 2.0.5. 

      Just write the *.out file to the NAND,  *.our file don't need convert to the *bin file.

      When load the *.out file to DDR, make sure the swap option is correct.