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.

hex6x problem

 the Flashburn require a .hex file which convert from the .out ,so ,i use hex6x to do this.

but when i write a .cmd for the hex6x, it has 4 warnings 

my linker.cmd is:

 

-stack          0x00000800      /* Stack Size */

-heap           0x00000800      /* Heap Size */

 

MEMORY

{

 

   VEC:     o=0x10800000 l=0x00000400 

   L2:      o=0x10800400 l=0x0000FC00

}

 

SECTIONS

   .intvecs    > VEC

  .off_chip   > L2

  .bss        > L2

  .far        > L2

  .chip_image > L2

  .data       > L2

  .text       > L2

  .cio        > L2

  .cinit      > L2  

  .boot   > L2

  .const      > L2

  .stack      > L2

  .sysmem     > L2

}

 

 

what is the problem and how could i solve it

my cpu is c6424 and flash is 16bit*4MB,how could i progrem the linker.cmd and hex.cmd???

thanks,sincerely

  • You show your linker.cmd file. What is in your intexample_ahex.cmd file?

  • my intexample_ahex.cmd file is :

    intexample.out

    -a

     

    -memwidth  8

     

    -image

     

    ROMS

    {

        FLASH: org = 0x42000000, len = 0x8000, romwidth = 16, files = {intexample.hex}

    }

  • pengtuo xu,

    Your linker.cmd file creates a file that can be loaded and run in L2. Your hex.cmd file will take anything that is at 0x42000000 and place that into the Flash memory. There is nothing in your .out file that belongs there, and all the initialized sections in your .out file were created to be loaded at a memory location that is not specified in your hex.cmd file.

    You must create a .out file that sets the LOAD address to be in the range of the Flash memory and with a RUN address in the internal L2. But exactly how you do this depends on the device and the boot mode that you will use.

    The Assembly Language Tools User's Guide describes how to use hex6x and it also describes how to specify different LOAD and RUN addresses and also describes some helpful information for boot options. There have been several Application Notes written about how to go through the whole process, so please go to the Product Folder for your DSP on the TI Website www.ti.com and look through the Application Notes for relevant ones. You can also click on the link to get more C6000 Application Notes and search for hex6x and boot.

    Please post here which documents you find and which sections of those documents are useful to you. Then if you have questions about what is written there, please let us know which part is not clear.

    Regards,
    RandyP