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.

flash programmer 2 v1.4.0 and cc2538 - Failed to read file .hex

Other Parts Discussed in Thread: CC2538, UNIFLASH, Z-STACK

Hello,
I'm testing the option of flash programmer 2 - v1.4.0 with the CC2538.
I generated an image .hex by IAR. This image is recorded correctly with IAR and Uniflash.
The intention of using the flash programmer is to assign, along with an image, the MAC address and the Certicom certificate. I'm using cert.txt file that comes in the stack Z-Stack Smart Energy 1.1.0 and am with the following message when trying to burn the image with flash programmer:

C:\Program Files (x86)\Texas Instruments\SmartRF Tools\Flash Programmer 2\bin>srfprog.exe -t lsidx(0) -e pif -p epfw(0) -f device-v002.hex -c ekf(cert.txt, 0x0027FF6C)

Texas Instruments SmartRF Flash Programmer 2 v1.4.0-windows
-------------------------------------------------------------------------------

Reading file: device-v002.hex.
Encryption Key File given. Reading file certCopiaConvert.txt
Flash address: 0x0027FF6C
ERROR: The address is overlapping with already existing data. address: 0x0027FF6C

Failed to read file device-v002.hex.


The same error occurs when it use the GUI programmer flash. Before attempting to write the image I run cleanup option "Forced Mass Erase" of the flash programmer. I also tested with the "Project / Download / Erase Memory" option in the IAR.

I'm using SmartRF06 Evaluation Board.

I thank for the help. 

  • Hi Vanessa, 

    Please refer to the section 3.3.2 of the document Z-Stack Energy Sample Application Users Guide.pdf at C:\Texas Instruments\Z-Stack Energy 1.1.0\Document on instructions on how to program the CC2538 with Certificate data using SmartRF Flash Programmer

  • Hi Suyash, 

    I followed this documentation, I exported the hex as indicated by this section. Could confirm the address flash memory initial for the EKF command? I used the address  example 0x27FF6C. This is the correct address?

  • Hi Suyash,

    Remaking the recording procedure I came to the following result: 

    srfprog lsidx -t (0) -p -e pif epfw (0) -f -c SampleApp.hex EKF (cert.txt, 0x0027C7FF)


    Texas Instruments SmartRF Flash Programmer v1.4.0-second windows
    -------------------------------------------------- -----------------------------

    Reading file: SampleApp.hex.
    Encryption Key File Given. Reading cert.txt file
                                Flash address: 0x0027C7FF
    ERROR: Some of the key parameters are missing in the Certificate file:
    - Device Public Key missing.


    Failed to read file SampleApp.hex.

    Content provided by Texas cert.txt file in the \ Z-Stack 1.1.0 Energy \ Projects \ zstack \ SE \ SampleApp \ Source \ OTA Cert:

    IEEE Address: 00124b0000000003
    CA Pub Key: 0200fde8a7f3d1084224962a4e7c54e69ac3f04da6b8
    Device Implicit Cert: 0204ac2c2656f1eea4ff5dac4edda176bfe4fa70d95600124b0000000003544553545345434101090001000001091003
    Device Private Key: 034bc37a7210b7407a51dc11e5aebaf2e1503f6955
    Device Public Key: 020718021c2ce9c58d2ad8352ab9ff452ff1c3bdadb3