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.

Hex file contains only zeros.

I have created a custom led blinking program on CCSv5.2. Added main.c file and its (header & library) files after building this project in debug mode i ran it in debug, it was working fine in debug mode. Now i want to burn this program on flash i followed Led-blinking example for dsk6416 and generated a .hex file. but file contains only zeros. Now my question is what i am doing wrong, should i need to add some other files as well? 

  • Hi Abbott Calvin,

    How did you create the hex file ?
    Can you post the logs while you converting hex file ?
    Are you getting any warning while converting ?

    ------------------
  • i have used hex6x utility for converting .out to .hex file.
    Yes this gave some warning while converting.


    C:\ti\ccsv5\tools\compiler\c6000_7.3.4\bin>hex6x C:\Users\shehzad\workspace_v5_2
    \Test1\Release\Test1.cmd
    Translating to ASCII-Hex format...
    "C:\Users\shehzad\workspace_v5_2\Test1\Release\Test1.out" ==> .text
    warning: section C:\Users\shehzad\workspace_v5_2\Test1\Release\Test1.out(.text)
    at 00h falls in unconfigured memory (skipped)
    "C:\Users\shehzad\workspace_v5_2\Test1\Release\Test1.out" ==> .const
    warning: section
    C:\Users\shehzad\workspace_v5_2\Test1\Release\Test1.out(.const) at 013e0h
    falls in unconfigured memory (skipped)
    "C:\Users\shehzad\workspace_v5_2\Test1\Release\Test1.out" ==> .cinit
    warning: section
    C:\Users\shehzad\workspace_v5_2\Test1\Release\Test1.out(.cinit) at 014a0h
    falls in unconfigured memory (skipped)

    C:\ti\ccsv5\tools\compiler\c6000_7.3.4\bin>
  • Test1.cmd file contains following

    -a

    -memwidth 8
    -map Test1.map
    -image

    ROMS
    {
    FLASH: org = 0x64000000, len = 0x00080000,romwidth = 8, files = {C:\Users\shehzad\workspace_v5_2\Test1\Release\Test1_hex.hex}
    }
  • Hi Abbott Calvin,

    You may have to modify the "org" parameter to remove this warning since your linker command file is configured to use the flash from 0x0h.

    Can you attach the linker command file of your project (Test1.out) ?
    Also attach your Test1.out.
    Let me convert to hex.