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.

CC1310: problem with uniflash

Part Number: CC1310
Other Parts Discussed in Thread: UNIFLASH,

Hello,

I use an Olimex XDS100v3 connected to a custom CC1310 Board and i have two problems with TI uniflash, sometimes i have a strange error: 

 [ERROR] IcePick_C: Error connecting to the target: (Error -230 @ 0x0) The measured lengths of the JTAG IR and DR scan-paths are invalid. This indicates that an error exists in the link-delay or scan-path. (Emulation package 7.0.188.0)

When i use Flash Programmer 2 i can read/write and erase the chip without any problems, with exactly the same setup.

Why does this error only happen with uniflash and it works sometimes ?

The second problem is that i would like to use the Standalone Command Line Option, but i need to do a mass erase before, there is no option for this, is there any possibility ?

Even there is an other strange thing, when i write the program with the Command Line Option, and even change the second address, i get an verification error of the address where the second address is saved. But this is not on the GUI uniflash version. Is this a BUG ?

Regards,

Martin

  • Hello,

    regarding the second mac address, the option "Override IEEE MAC address during program download" is the problem, when i deactivate this option the address is written after the flash and the verification doesn't fail.

    But the problem when i want to program a locked device, that i can't use the mass erase still exists.


    Regards,
    Martin
  • Hello,

    i found an other thread, which searched for a mass erase: e2e.ti.com/.../669082

    But the command "dbgjtag.exe –f @xds100v3 –Y unlock,mode=tiva" and even with xds100v2 or xds200 doesn't work:

    C:\ti\uniflash_4.3.0\deskdb\content\TICloudAgent\win\ccs_base\common\uscif>dbgjtag.exe -f @xds100v3 -Y unlock,mode=tiva

    Error: This utility has invalid arguments.


    Is there some other possibility to make an mass erase with the CLI tools ?


    Regards,
    Martin
  • Martin,

    >>sometimes i have a strange error
    The error itself is mentioned in the reference below, but given it seems to be happen somewhat randomly on Uniflash only, it may be due to either a bug/performance issue of the tool itself (Uniflash is a larger software suite than the Flash Programmer) or perhaps any minor glitches on the connection itself that surface if Uniflash performs additional operations that require more data to be transferred between on the JTAG connection.
    software-dl.ti.com/.../ccsv7_debugging_jtag_connectivity_issues.html

    >>The second problem is that i would like to use the Standalone Command Line Option, but i need to do a mass erase before, there is no option for this, is there any possibility ?
    At this time there is no support for CLI mass erase functionality for CC13xx/CC26xx, but work to implement this has been in our radar for a while now.

    >>C:\ti\uniflash_4.3.0\deskdb\content\TICloudAgent\win\ccs_base\common\uscif>dbgjtag.exe -f @xds100v3 -Y unlock,mode=tiva
    Interesting; this command works for me on CCS. I am downloading Uniflash 4.3 to try and validate this.

    However, keep in mind the unlock operation on a Tiva device is different than mass erase on a CC13xx/CC26xx device.

    Hope this helps,
    Rafael
  • Hello Rafael,

    thanks for your answer.

    ok, maybe it is related to our cable, i will try with different cables.

    Do you know when the feature is available, because we need the possibility to mass erase for a project ? Even the programming with Flash Programmer is not stable and as i read here it is not recommended to use it.

    Please try, i have tested a xds200 and a xds100v3, with both the same problem, the only difference is that the version in the thread is 6.x and uniflash 4.3 has 7.x base.

    Exists a special unlock operation for the CC13xx/CC26xx ?

    Regards,

    Martin

  • Martin,

    >> Do you know when the feature is available, because we need the possibility to mass erase for a project ?
    I will push to get some priority to address this issue, but at this moment there is no confirmed date/release. Sorry

    >> Please try, i have tested a xds200 and a xds100v3, with both the same problem,
    I was able to make the command work with Uniflash 4.3 as well. Please note the unlock command is only valid for TM4C devices, not CC13xx.

    I apologize for the inconvenience,
    Rafael
  • Hello Rafael,

    is there any other cmd line option for cc13xx to make a mass erase which actually works ?

    Regards,

    Martin

  • Martin,

    There is none that I am aware of at the moment. Sorry.

    Regards,
    Rafael
  • Hello Rafael,

    this is very disappointing. 

    Flash Programmer 2 is not working properly, Uniflash works, but not in cmd, other programmer of Elprotronic and Elnec are not working. Maybe you should change the Datasheet of CC13xx that it doesn't support cJTAG. We used cJTAG during development and would like to use it at production, but there are no stable working software/programmer.

    Regards,

    Martin

  • Martin,

    >>When i use Flash Programmer 2 i can read/write and erase the chip without any problems, with exactly the same setup.
    According to your original sentence above, I thought that Flash Programmer 2 was working for you. Did anything change in this regard?

    Regards,
    Rafael
  • Hello Rafael,

    Yes i can read/write, but i get random 

    Create XBAL object failed: Target connect failed

    This is not suitable for mass programming. I tested it with a really short cable and no other devices connected to usb.

    So, yes i can program, but not stable and i didn't found any tool/programmer whitch can, even if is use short cables between the programmer and the chip.

    Regards,

    Martin