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.

about writing .cmd file

Hi:

     Recently, I'm tring to optimize the project by modifying the .cmd file, I know a few keywords, example GROUP...,but I do not kown exactly how to use them, Is there any documents about  using them? Could you recommand me some?

Thank you very much.

  • 8524.LinkerCmdFileSyntax.zip

    Attached document Pg 179 Section 7.5 has description of linker command file syntax.Even though document mentions C28x it is applicable to TI linkers in general

  • I had got few application examples with EVM DM6467 board. I have imported led application project to CCS V5. Under properties of the project, I have used "DM6467.cmd" for led application. 

    I have converted "led.out" to "led.bin" through ccs compiler.

    I had put the "ubldavinci.bin" on nandflash of EVM DM6467 board using "nand_flash_writer.out" in CCS v5.2 and I have placed the "led.bin" under application block. this is not executing. Under "emulation mode" this application will work but under "nand flash boot mode" this application will not work. 

    The message seen under console while writing "ubldavinci.bin" and "led.bin" to nandflash are as follows:

    [ARM926] 01 Testing NAND Flash...
    [ARM926] Starting NAND Flash Writer
    [ARM926] Note: First page of the block will be used to store boot header
    [ARM926]
    [ARM926] Total blocks: 1024
    [ARM926] Total pages: 65536
    [ARM926] Total bytes: 134217728
    [ARM926] Enter the File Name
    d:ubldavinci.bin
    [ARM926] Enter Block Offset
    [ARM926] NOTE: [1-5] for User BootLoader [6-50] for Application
    1
    [ARM926] Do a global Erase
    y
    [ARM926] Erasing Flash [0-1024] blocks
    [ARM926] Writing Flash
    [ARM926] Writing to page 64
    [ARM926] Writing Flash [65-71] pages
    [ARM926] Writing to page 65
    [ARM926] Writing to page 66
    [ARM926] Writing to page 67
    [ARM926] Writing to page 68
    [ARM926] Writing to page 69
    [ARM926] Writing to page 70
    [ARM926] Writing to page 71
    [ARM926] PASS
    [ARM926]
    [ARM926] ***ALL Tests Passed***
    [ARM926] 01 Testing NAND Flash...
    [ARM926] Starting NAND Flash Writer
    [ARM926] Note: First page of the block will be used to store boot header
    [ARM926]
    [ARM926] Total blocks: 1024
    [ARM926] Total pages: 65536
    [ARM926] Total bytes: 134217728
    [ARM926] Enter the File Name
    c:\led.bin
    [ARM926] Enter Block Offset
    [ARM926] NOTE: [1-5] for User BootLoader [6-50] for Application
    6
    [ARM926] Do a global Erase
    n
    [ARM926] Enter application entry point
    0x80000000
    [ARM926] Enter application load Address
    0x80000000
    [ARM926] Erasing Flash [6-6] blocks
    [ARM926] Writing Flash
    [ARM926] Writing to page 384
    [ARM926] Writing Flash [385-398] pages
    [ARM926] Writing to page 385
    [ARM926] Writing to page 386
    [ARM926] Writing to page 387
    [ARM926] Writing to page 388
    [ARM926] Writing to page 389
    [ARM926] Writing to page 390
    [ARM926] Writing to page 391
    [ARM926] Writing to page 392
    [ARM926] Writing to page 393
    [ARM926] Writing to page 394
    [ARM926] Writing to page 395
    [ARM926] Writing to page 396
    [ARM926] Writing to page 397
    [ARM926] Writing to page 398
    [ARM926] PASS
    [ARM926]
    [ARM926] ***ALL Tests Passed***

    Should I change the command file or is there any procedure to load "led.out" to nand flash. Please reply. 

  • Hi Kumaraswamy, i am here in same situation, kindly help
  • Hi Rajesh,
    The "led.out" file is required to debug the code and led.bin is required to flash into NAND flash/any media.
  • Hi Titus,


    1.    I downloaded the UBL” flash-utils-dm646x.tar.gz”
    2.    Using Code Composer Studio V6.0, I generated “ublDaVinci.out” file.
    3.    I generated “ublDaVinci.bin” file using  Code Composer Studio V6.0
    4.    Using NAND flash Writer Utility available in the ” flash-utils-dm646x.tar.gz , I have downloaded “ublDaVinci.bin  file to NAND flash.
    5.    The “ublDaVinci.bin “ file generated by CCS V6 didn’t work.  Then I tried with CCS V5.7 to generate “ublDaVinci.bin “.  Still it didn’t work.
    6.    Then I tried with the utility programs available with the ” flash-utils-dm646x.tar.gz” to generate “ublDaVinci.bin “  file.   Referred “EVM6467T installation guide”.  This “ublDaVinci.bin “ file, I downloaded to NAND flash and it worked.
    7.    I am writing No OS based application programs, hence I would like to generate .bin files directly using CCS.
    8.    Could you please help me, why the .bin files generated by CCS is not working with NAND flash.
    Thanks,
    Rajesh