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.

CCS/TMS320F280049C: "Output as bytes rather than target addressing (--byte, -byte)" option in C2000 Hex Utility

Part Number: TMS320F280049C
Other Parts Discussed in Thread: UNIFLASH

Tool/software: Code Composer Studio

Hi Experts,

Unifiash shows waring and can not download the .hex correctly after "Output as bytes rather than target addressing (--byte, -byte)" in General Option in C2000 Hex Utility in Build in Property menu is checked.

Could you please let me know the reason?

Thank you for your kind check.
Best regards,
Hitoshi

  • Hitoshi,

    Can you let me know what warning or error you are getting when you try to load the generated hex file?

    Also, I'm not too familiar with the "Output as bytes" compiler option, but does the generated hex file work in UniFlash if you turn the option off?

    Thanks,

    Ricky

  • Hi Ricky,

    The warning is shown as follows:
    After "Load Image" is pressed, it says:
    [WARNING] C28xx_CPU1: Loader: One or more sections of your program falls into a memory region that is not writable. These regions will not actually be written to the target. Check your linker configuration and/or memory map.

    After "Verify Image" is pressed, it says:
    [ERROR] C28xx_CPU1: File Loader: Verification failed: Memory map prevented reading 0x100000@Program


    If "Output as bytes rather than target addressing (--byte, -byte)" is not checked, it works OK.

    Thank you for looking into it.
    Best regards,
    Hitoshi

  • Hitoshi,

    It looks like the addresses are multiple by 2 when using that option. Address 0x100000 is not valid memory, so UniFlash will not be able to program that address, while address 0x80000 is the start of flash memory on F280049C, which I'm assuming is what you were mapping your data to in your linker file.

    Does your program work when you have that option off, and if so, that seems like the correct way to generate the hex file for C2000 targets (16-bit).

    Thanks,

    Ricky

  • Hi Ricky,

    Thank for your investigation.
    Will ask the customer not to use the option.

    If they have a further question, will post a new thread.
    Thank you again.
    Best regards,
    Hitoshi Sugawara