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.

Uniflash 2.1 not loading program on CC2538

Other Parts Discussed in Thread: UNIFLASH, CC2538, SMARTRFTM-STUDIO, CC2530, CC2531, CC2510

Hi,

I downloaded the uniflash tool for loading program on a CC2538 but this does not work. The tool says it's successfully loaded the program but I can see that it's not the case via the UART. I've used the config from http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/81/7658.CC2538.zip

I have used ArmProgConsole.exe to do the same and it works. Any ideas ?

Thanks

  • Hi Bharanee,

    do you mean the Zigbee radio?   If so this system of chip is 8051 based and not supported by CCS or Uniflash.   If you do not mean the radio part, could you please clarify?

    The CC2538 Zigbee system on chip can be flash programmed with the SmartRF Studio utility

    http://www.ti.com/tool/smartrftm-studio

    I hope this helps.

    Best Regards,
    Lisa

  • Hi Lisa,

    I'm talking about the CC2538 Zigbee SOC. I've just gone through http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/239320.aspx and it clearly says Uniflash should work with CC2538

    Thanks

  • Hi Bharanee,

    ok, my appologies, it seems these tools are converging. Let me tweak a colleague for you.

    Best Regards,

    Lisa

  • Hi Bharanee,

    That sounds odd, do you mind sending me the binary you are trying to load? You can email it to me directly to v-yang@ti.com

    Also, could you turn on the verbose mode and run a verify program operation(Programs-> Verify Program) after the program load? You can find the verbose mode checkbox at the very bottom of the settings. 

    Regards,

    Victor

  • Hi Victor,

    I've emailed you the binary. This is what I get using Uniflash from command line. a) load program b) verify

    $ ~/software/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniflash.sh -ccxml CC2538.ccxml -program test.elf

    ***** Texas Instruments Universal Flash Programmer *****

    <START: 18:33:08 GMT+1100 (EST)>

    > Configuring the Flash Programmer with the given configuration ...

    flxInitLoad: client has not been protected.
    flxInitLoad: client has not been protected.
    > Flash Manager is configured for the following part: CC2538

    > Connecting to the target for Flash operations ...

    > Connected.

    > Loading Program: test.elf
    > Finish Loading.

    <END: 18:40:38 GMT+1100 (EST)>

    <Operation Time: 443.002s>
    <Total Time: 450.812s>

    $ ~/software/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniflash.sh -ccxml CC2538.ccxml -verify test.elf

    ***** Texas Instruments Universal Flash Programmer *****

    <START: 18:47:54 GMT+1100 (EST)>

    > Configuring the Flash Programmer with the given configuration ...

    flxInitLoad: client has not been protected.
    flxInitLoad: client has not been protected.
    > Flash Manager is configured for the following part: CC2538

    > Connecting to the target for Flash operations ...

    > Connected.

    > Verifying program on target: test.elf
    SEVERE: Cortex_M3_0: File Loader: Data verification failed at address 0x0020003C Please verify target memory and memory map.

    SEVERE: File: test.elf: a data verification error occurred, file load failed.
    at GEL_VerifyProgram("test.elf")

    SEVERE: Error evaluating "GEL_VerifyProgram("test.elf")": File: test.elf: a data verification error occurred, file load failed.
    at GEL_VerifyProgram("test.elf")

    > Command suspended due to errors in verifying the program.

    <END: 18:48:31 GMT+1100 (EST)>

    <Total Time: 36.542s>

  • Hi Bharanee,

    What you are experiencing appears to be a known bug, the CC2538 team had been working on a fix and the attached is an updated dll that should fix your problem. Please place it in the path follows:

    uniflash_2.1.0.00009_install\uniflashv2\ccs_base\DebugServer\bin

    Once the dll is final, we will get this updated binary in the new release packages.

    Regards,

    Victor

    4571.FlashCC2538.zip

  • Hello Victor,

    Dose this mean the the CC25xx family can be programmed using the CCS and UniFlash?  We no longer have to use IAR???

    Thanks,

  • Hi Victor,

    Thanks for following it up. Could you also attach the shared library for linux (libFlashCC2538.so) ?

    Regards,

    Bharanee

  • Hi,

    The CC2538 family of devices with ARM Cortex M3 core will be supported in CCS and UniFlash. There are no plans for supporting the older 8051 based SoC's in CCS/UniFlash (CC2510, CC2530, CC2531 etc.)

    Bjørn

  • Hi Bharanee,

    Here is the updated .so for linux from Bjorn.

    Victor

    5153.libFlashCC2538_so.rar

  • Hi Victor and Bjørn,

    This works perfectly. Thanks for following it up so quickly, appreciate it.

    Regards,

    Bharanee