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.

  • Resolved

CC1110-CC1111: Issue Verifying Hex File After Flashing Using SmartRFProgConsole.exe in IAR

Intellectual 295 points

Replies: 4

Views: 49

Part Number: CC1110-CC1111

I have TI SmartRF Flash Programmer version 1.12.8 configured as a tool in IAR v8.30.1:

Command: C:\Program Files (x86)\Texas Instruments\SmartRF Tools\SmartRF Studio 7\bin\SmartRFProgConsole.exe
Argument: S() EPV F=$TARGET_PATH$ K(0)

Using IAR, I compile and link my CC1110 code and generate an extra output intel extended hex file with no formal variant.

Generated by IAR, the hex file starts with lines:

:020000040000FA
:100000000200C7FFFFFFFFFFFFFFFFFFFFFFFFFF34
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0

When I use SmartRF Flash Programmer to read the file, the generated file starts with lines:

:100000000200C7FFFFFFFFFFFFFFFFFFFFFFFFFF34
:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0

This presents an issue when verifying the files using SmartRF Flash Programmer.

How can I resolve this?
Either I need to:

A) know how to keep IAR from writing the Extended Linear Address record ":020000040000FA", or

B) know how to get SmartRF Programmer to read the Extended Linear Address.

Can anyone assist with this?

  • Hi,

    I don't understand what you mean by "When I use SmartRF Flash Programmer to read the file, the generated file starts with line." Did SmartRF FLash programmer change the file?

    Cheers,
    Marie H.

  • In reply to Marie H:

    Here are chronological steps to describe the issue.
    1) I compile the code using IAR and produce PTag.hex which starts with line :020000040000FA. I download PTag.hex onto the chip using IAR.
    2) I use Flash Programmer to read the hex file on the chip and name it PTagRead.hex.
    3) I use Flash Programmer to verify the hex file PTag.hex and PTagRead.hex match. They don't match because PTagRead.hex doesn't start with :020000040000FA.

    Next, I want to verify that Flash programmer writes and read correctly:
    4) I write PTagRead.hex onto the chip using the Flash Programmer.
    5) I read the hex file on the chip again and call it PTagRead2.hex.
    6) I use Flash Programmer to verify the hex file PTagRead.hex and PTagRead2.hex. They match.

    7) I write the hex file PTag.hex generated by IAR onto the chip using Flash programmer.
    8) I use Flash Programmer to read the hex file on the chip and name it PTagRead3.hex.
    9) I use Flash Programmer to verify PTag.hex and PTagRead3.hex match. They don't.

    Flash Programmer removes the line :020000040000FA when it reads hex files generated by IAR.
    How can I prevent Flash programmer from deleting that line so that I can get matching files?

  • In reply to JDBC:

    Hi,

    Option A is the only way to go. Not sure how and if possible in IAR.

    The flash programmer will not create any record of the "Extended Linear Address" type if not needed. CC1110/CC1111 does not have more than 32 kB flash and the Extended Linear Address is not needed. From your example you can see that the extended address is 0x0000 so it is not really needed.

    Regards,

    Øyvind

  • In reply to Øyvind K:

    For anyone else with this issue, pay attention to the Linker Extra Output format.  The CC1110 doesn't need intel-extended. If you use intel-extended, TI Flash Programmer will not verify a code match.

    If you use linker extra output format intel-standard, the code will verify correctly with Flash Programmer.

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.