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.

MSPM0G3507: Changing HEX File Format Byte Count to 0x10

Part Number: MSPM0G3507

Tool/software:

Hi Ti Team,

I am currently working with the MSPM0G3507 MCU and using CCS 12.7.1. I would like my project to generate a HEX file where the byte count is 0x10, instead of the default 0x20.

To achieve this, I went into CCS and set the following:
Project -> Properties -> Arm Hex Utility -> Specify memory width (--memwidth, -memwidth) to 16.
However, after building, the resulting HEX file still has a byte count of 0x20.

Is it possible to configure CCS to generate a HEX file with the 0x10 byte count format I need?

  • Hi David,

    It seems the option --memwidth is not for HEX file byte size definition of each line.

    I will check internal about whether it is supported to generate a 0x10 byte count format hex.

    Best Regards,

    Pengfei

  • Hi David,

    I could not find the way to generate a 0x10 byte count format hex file by using tiarmhex.

    Here is the options for hex generation:

    16.2. Invoking the Hex Conversion Utility — TI Arm Clang Compiler Tools User's Guide

    Best Regards,

    Pengfei

  • Hi Pengfei,

    Thank you very much for your assistance.
    The main reason I want to do this is to merge three hex files, but the byte counts of each hex file are different.
    Therefore, I would like to ask if TI provides or recommends any tools for merging hex files?

    Best Regards,

    David

  • Unfortunately, there is no method for controlling the amount of data that appears on one line of hex output.  

    The main reason I want to do this is to merge three hex files, but the byte counts of each hex file are different.

    You don't say what hex format you use.  But I don't see why it would matter that parts of the combined hex file have 0x10 bytes per line, and other parts have 0x20 bytes per line.

    I would like to ask if TI provides or recommends any tools for merging hex files?

    TI provides no such tools.  Neither do we recommend any tools.  The open source utility srec_cat may be able to solve your problem.

    Thanks and regards,

    -George

  • Thank you for your response, and I apologize for not clearly explaining my requirements earlier.

    Currently, I have three HEX files from different sources, and not all of them were generated by CCS. While they all follow the Intel HEX format, each file has a different byte count, and I am unsure whether this would affect the merging process.

    I truly appreciate the information you provided, and I will further explore the srec_cat tool.