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.

TMS320F28034: Unable to output INTELHEX file in UniFlash.

Genius 5615 points
Part Number: TMS320F28034
Other Parts Discussed in Thread: UNIFLASH, TMDSEMU110-U, , C2000-GANG, MSP430FR2433

Hi experts,

A customer of mine is using UniFlash and is having a problem with INTELHEX not being able to output files.
As shown in the thread below, there is no error message, but the number of output bytes seems to be zero.
URL:https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/901273

I suspected that the device was locked, but it turns out that the customer has not locked the memory. Also, for some reason, we know that the BIN format can output a normal number of Bytes of data.

Q1: Could you please let me know if you know any countermeasure for this problem?
Version of UniFlash: 6.2.0
Emulator: XDS110 DEBUG Probe (TMDSEMU110-U)
Target device: TMS320F28034

The background of needing INTELHEX format file is to extract the contents of already programmed Flash memory in INTLHEX format and write the extracted file from C2000-GANG to other board sets.

I checked E2E for other similar cases, but couldn't find anything helpful. Also, I have confirmed that LaunchPad on MSP430FR2433 can output both BIN file and INTELHEX file without any problem. Please let me know if there is not enough information for me to investigate.

Best regards,
O.H

  • Hi,

    Thank you for contacting us on this.

    I tried BIN and COFF formats earlier.  I did not try the other export options.  Let me try and get back to you.

    Thanks and regards,
    Vamsi

  • Hi O.H,

    I tested this in UniFlash 6.2, and I'm seeing similar behaviour as well. From what I can see, the new TI-TXT format works, but the INTELHEX format is not working.

    I also tested it on an Cortex-M3 core, and the INTELHEX format is working, so it seems to be only affecting C2000 cores.

    I'll file a bug for this and it should be fixed in the next version.

    Sorry for the inconvenience and thank you for reporting this issue to us.

    Ricky

  • Hi Ricky,

    Ricky Lau said:

    I tested this in UniFlash 6.2, and I'm seeing similar behaviour as well. From what I can see, the new TI-TXT format works, but the INTELHEX format is not working.

    I also tested it on an Cortex-M3 core, and the INTELHEX format is working, so it seems to be only affecting C2000 cores.

    Thank you too for checking it out in person. I understood that the bug applies only to C2000 core.

    By the way, is this bug not applicable to past versions of UniFlash (before 6.2)? If you know, it would be helpful if you could tell me which previous UniFlash version you have confirmed that the INTELHEX format can be read by the C2000 core.

    Ricky Lau said:
    I'll file a bug for this and it should be fixed in the next version.

    If possible, could you please let me know when the fixed version will be released?
    If it is expected to take a long time, we will need to guide our customers to an alternative method that does not use UniFlash.

    Best regards,
    O.H

  • Hi Ricky,

    O.H said:
    By the way, is this bug not applicable to past versions of UniFlash (before 6.2)? If you know, it would be helpful if you could tell me which previous UniFlash version you have confirmed that the INTELHEX format can be read by the C2000 core.

    Output in INTELHEX format was supported since v6.2. So, please forget about the above question.

    Best regards,
    O.H

  • Hi O.H,

    Yes, it is introduced recently in UniflashV6.2.

    Thanks and regards,

    Vamsi

  • Hi Vamsi,

    Thank you for your reply.

    I'm sorry that this is an additional question and different from the thread title, but please let me know.

    When outputting as a TI-TXT file, is there a function to output in 16-bit width?

    As a temporary measure, they tried to output as a TI-TXT file. However, the output file is 8-bit width, and therefore C2000-GANG displays "ERROR 354: Code in the file contains invalid data. I think this is a necessary feature, because I think it can be solved if the output is 16-bits width for the C2000 core.
    Reference thread:https://e2e.ti.com/support/tools/ccs/f/81/t/830512?CCS-TMS320F28377D-TI-TXT-File-Generation-issues-with-C2000-GANG

    Best regards,
    O.H

  • O.H,

    By default the TI-TXT format outputs to 8-bit width, even when using the hex utilities.

    But from the thread you posted, it looks like C2000-GANG is expecting the data to be in 16-bit width.

    I'll file a bug to get this fixed for next version.

    As for timing, I'm hoping to have the 2 fixes for CCS10.3 in March and UniFlash 6.3 in April.

    Thanks,

    Ricky

  • Hi Ricky,

    I understood.

    Thank you both for your support.

    Best regards,
    O.H