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.

Generating .hex file for CC2650 with CCS6.1

Other Parts Discussed in Thread: CC2650

Hi,

i have big problems to generate valid .hex files for the CC2650. I have tried different output formats, but either the file is not flash able or the verification fails and the program does not run.

- Is there any documentation available how to configure CCS for hex output?

- Which settings do i need in CCS6.1 to get correct .hex files?

Thanks,

Rene

 

  • Hello Rene,

    Have you enabled the ARM Hex Utility in the Project Properties, under Build -> ARM Hex Utility ?

    Best wishes
  • Hello JXS,

    i have enabled the ARM Hex Utility.
    In the forum i have read that i have to use the intel format when i want to combine the hex images, so i selected intel as output format. I also tried the other formats but none of them worked.

    Regards,
    Rene
  • Hello Rene,

    Please don't modify the ARM Hex Utility settings, you'll get undefined output.

    Here is one EXAMPLE of combining hex files, doing a web search (and even E2E!) will show others:

    For creating the super hex file is with the IntelHex python script hex_merge.py, available at launchpad.net/.../+download. To merge the hex files, make sure Python 2.7.x is installed and added to your system path environment variables.

    Example usage to create a merged SimpleBLEPeripheral_merged.hex file: C:\Python27\Scripts>python hexmerge.py -o .\SimpleBLEPeripheral_merged.hex -r 0000:1FFFF SimpleBLEPeripheralAppFlashROM.hex:0000:1FFFF SimpleBLEPeripheralStackFlashROM.hex --overlap=error

    Best wishes
  • Hello,


    i tried it his way. When i want to combine the .hex files  i get the following output:

    c:\Python27\python.exe hexmerge.py -o .\SimpleBLEPeripheral_merged.hex -r 0000:1FFFF
     SimpleBLEPeripheral.hex:0000:1FFFF SimpleBLEPeripheralStack.hex --overlap=error
    Traceback (most recent call last):
      File "hexmerge.py", line 178, in <module>
        sys.exit(main())
      File "hexmerge.py", line 158, in main
        ih = intelhex.IntelHex(fname)
      File "c:\Python27\lib\site-packages\intelhex\__init__.py", line 93, in __init__
        self.loadhex(source)
      File "c:\Python27\lib\site-packages\intelhex\__init__.py", line 215, in loadhex
        decode(s, line)
      File "c:\Python27\lib\site-packages\intelhex\__init__.py", line 126, in _decode_record
        raise HexRecordError(line=line)
    intelhex.HexRecordError: Hex file contains invalid record at line 1

     

    And when i use the FlashProgrammer V2 to flash the .hex files directly it throws the following wrror message:

    >Start flash programming ...

    >Could not locate any assigned flash bytes starting at address 0.

    >Reset target ...

    >Reset of target successfull.

    To generate this hex files i only enabled Arm Hex Utility with default settings.

     

  • I found the issue, there was a bug in my CCS installation. I reinstalled the complete ti Software and it worked.

  • Glad to hear it's working!

    Best wishes