• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » Code Composer Studio » Code Composer Forum » Issue with Uniflash tool and CC2538 on Ubuntu
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Forums

    Issue with Uniflash tool and CC2538 on Ubuntu

    This question is answered
    TA12012
    Posted by TA12012
    on Jan 15 2013 20:49 PM
    Expert8395 points

    All, 

    I have just installed Uniflash version 2.0 (with support for CC2538) and I cannot successfully flash a CC2538. The error message is:

    "Multiload operation failed: Connect to target failed" and then in the details it says something about IcePick_C Error connecting to target : Error -233 @ 0x0) The JTAG IR and DR scan paths cannot circulate bits, they may be broken.

    Regards,
    Thomas 

    ---------------------------------------------------------------------------------------------------------
    Please click the Verify Answer
     button on this post if it answers your question.
    ---------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • TA12012
      Posted by TA12012
      on Jan 15 2013 20:54 PM
      Expert8395 points

      PS: It also did not behave well during installation. The "desktop icon" cannot execute (fails with a Eclipse error) but if I run the same executable from the command line the gui comes up. And the install script never says it has completed, so I am not sure it succeeded. The machine is a DELL laptop with a completely fresh copy of Ubuntu 12.10 on it.

      Regards,
      Thomas 

      ---------------------------------------------------------------------------------------------------------
      Please click the Verify Answer
       button on this post if it answers your question.
      ---------------------------------------------------------------------------------------------------------

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TA12012
      Posted by TA12012
      on Jan 15 2013 21:40 PM
      Expert8395 points

      Just tried on my Windows7 PC also, with the exact same error message.

      [21:39:07] Cortex_M3_0: GEL Output:
      Memory Map Initialization Complete

      [21:39:08] Loaded target configuration from: C:\Users\a0869488\AppData\Local\.TI\646835867\0\0/temptargetconfiguration.ccxml
      [21:39:08] Settings purged.
      [21:39:28] FATAL >> IcePick_C: Error connecting to the target: (Error -233 @ 0x0) The JTAG IR and DR scan-paths cannot circulate bits, they may be broken. An attempt to scan the JTAG scan-path has failed. The target's JTAG scan-path appears to be broken with a stuck-at-ones or stuck-at-zero fault. (Emulation package 5.0.952.0)

      [21:39:28] MultiLoad operation failed: Connect to target failed!

      ---------------------------------------------------------------------------------------------------------
      Please click the Verify Answer
       button on this post if it answers your question.
      ---------------------------------------------------------------------------------------------------------

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Victor Yang
      Posted by Victor Yang
      on Jan 16 2013 09:53 AM
      Intellectual770 points

      Hi TA12012,

      The problem is that the auto generated ccxml apparently doesn't work with CC2538 and connect attempts would fail. Please use the attached ccxml instead.

      Also, this device do not support "multiload" feature as the core part of the flash operations binaries are external to our team. "erase" will not work as well. You can only load single programs at a time due to the limitation from the external software. To do this, please go to the menu "Program->Load Program".

      Regards,

      Victor

      7658.CC2538.zip

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • TA12012
      Posted by TA12012
      on Jan 19 2013 15:43 PM
      Expert8395 points

      Victor, 

      That works on both Windows and  Ubuntu 12. Thanks.

      In windows everything works fine, in Ubuntu the icon that get installed does not work (complains about not having root access). But if run in from a terminal window everything works just fine. 

      If I may, can I ask one more question. Can you give me command line style command that we could use to call UniFlash with from within a Makefile.

      something like 

      ./Uniflash -noGUI -files ...? I cannot find the documentation for this

       I do not want the GUI to come up in this case.

      Regards,
      Thomas 

      ---------------------------------------------------------------------------------------------------------
      Please click the Verify Answer
       button on this post if it answers your question.
      ---------------------------------------------------------------------------------------------------------

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Victor Yang
      Posted by Victor Yang
      on Jan 21 2013 09:10 AM
      Intellectual770 points

      Hi Tomas,

      I will look into the Ubuntu shortcut problem. It should be an installation issue.

      As for your command line problem, we do have a command line interface for the app. The command line app folder is located at: " <installation folder>\uniflashv2\ccs_base\scripting\examples\uniflash\cmdLine ". Inside you will find an example script, a readme file contains detailed guide. That should solve your problem.

      Regards,

      Victor

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Firefighter
      Posted by Firefighter
      on Jan 24 2013 07:07 AM
      Expert5430 points

      Hello,

      I have a similar problem as TA, when I try to use UniFlash from Terminal I get the following:

      user@instant-contiki:/opt/ti$ sudo ./uniflash.sh -ccxml /home/user/CC2538.ccxml -program /home/user/lifx/contiki-cc2538/examples/er-rest-example/er-example-server.elf

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

      <START: 10:08:36 GMT+0100 (CET)>

      > 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

      SEVERE: Option not found
      org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Option not found (/opt/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniFlash_main.js#243)
      at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1705)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)
      at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:201)
      at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:74)
      at org.mozilla.javascript.gen.c1._c8(/opt/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniFlash_main.js:243)
      at org.mozilla.javascript.gen.c1.call(/opt/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniFlash_main.js)
      at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:106)
      at org.mozilla.javascript.gen.c1._c0(/opt/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniFlash_main.js:16)
      at org.mozilla.javascript.gen.c1.call(/opt/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniFlash_main.js)
      at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
      at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
      at org.mozilla.javascript.gen.c1.call(/opt/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniFlash_main.js)
      at org.mozilla.javascript.gen.c1.exec(/opt/ti/uniflashv2/ccs_base/scripting/examples/uniflash/cmdLine/uniFlash_main.js)
      at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:500)
      at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:422)
      at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:388)
      at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:379)
      at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:176)
      at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:97)
      at org.mozilla.javascript.Context.call(Context.java:540)
      at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:447)
      at org.mozilla.javascript.tools.shell.Main.exec(Main.java:159)
      at org.mozilla.javascript.tools.shell.Main.main(Main.java:137)
      Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Option not found
      at com.ti.debug.engine.scripting.Options.setBoolean(Options.java:234)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142)
      ... 21 more


      In addition I have only succeeded one to flash my device using the GUI once. Could it be some things missing? I have not tried the tool on Windows yet.

      Thanks,

      Jonas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Victor Yang
      Posted by Victor Yang
      on Jan 24 2013 09:07 AM
      Intellectual770 points

      Hi Jonas,

      Are you using the ccxml that was attached in my previous post? It appears that there is a bug in the ccxml generation that the auto generated ccxml for CC2538 doesn't work. You will have to manually create the script and edit it to change connection types. From the GUI, open the ccxml to create a flash session by using "File->Open Target Configuration(*.ccxml) File" instead of creating a new one. Remeber also to only load program using "Program->Load Program". If you still fail to program from the GUI please turn on the verbose mode option at the very bottom in the list of options and attach the output from the console.

      Also, which version of UniFlash are you running? 

      Regards,

      Victor

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Firefighter
      Posted by Firefighter
      on Jan 25 2013 02:16 AM
      Expert5430 points

      Hi Victor,

      Yes, am using the provided CC2538.ccxml

      Program->Load Program is the only feature I am interested in, which is what I am trying. The Uniflash version I am using is 2.0.0.00013 

      Seems it is now working from GUI, but not from command line. Here is the output in verbose mode (from command line tool):

      C:\TI>call "C:\ti/uniflashv2\ccs_base\scripting\examples\uniflash\cmdLine\uniflash.bat" -verbose 1 -ccxml c:\ti\uniflashv2\CC2538.ccxml -program C:\wo
      rk\temp\contiki\cc2538dk\er-example-server.elf

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

      <START: 09:11:59 GMT+0100 (CET)>

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

      > Flash Manager is configured for the following part: CC2538

      SEVERE: Option not found
      org.mozilla.javascript.WrappedException: Wrapped com.ti.ccstudio.scripting.environment.ScriptingException: Option not found (C:\TI\uniflashv2\ccs_base
      \scripting\examples\uniflash\cmdLine\uniFlash_main.js#243)
      at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1705)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)
      at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:201)
      at org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:74)
      at org.mozilla.javascript.gen.c1._c8(C:\TI\uniflashv2\ccs_base\scripting\examples\uniflash\cmdLine\uniFlash_main.js:243)
      at org.mozilla.javascript.gen.c1.call(C:\TI\uniflashv2\ccs_base\scripting\examples\uniflash\cmdLine\uniFlash_main.js)
      at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:106)
      at org.mozilla.javascript.gen.c1._c0(C:\TI\uniflashv2\ccs_base\scripting\examples\uniflash\cmdLine\uniFlash_main.js:16)
      at org.mozilla.javascript.gen.c1.call(C:\TI\uniflashv2\ccs_base\scripting\examples\uniflash\cmdLine\uniFlash_main.js)
      at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)
      at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)
      at org.mozilla.javascript.gen.c1.call(C:\TI\uniflashv2\ccs_base\scripting\examples\uniflash\cmdLine\uniFlash_main.js)
      at org.mozilla.javascript.gen.c1.exec(C:\TI\uniflashv2\ccs_base\scripting\examples\uniflash\cmdLine\uniFlash_main.js)
      at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:500)
      at org.mozilla.javascript.tools.shell.Main.processFileSecure(Main.java:422)
      at org.mozilla.javascript.tools.shell.Main.processFile(Main.java:388)
      at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:379)
      at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:176)
      at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:97)
      at org.mozilla.javascript.Context.call(Context.java:540)
      at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:447)
      at org.mozilla.javascript.tools.shell.Main.exec(Main.java:159)
      at org.mozilla.javascript.tools.shell.Main.main(Main.java:137)
      Caused by: com.ti.ccstudio.scripting.environment.ScriptingException: Option not found
      at com.ti.debug.engine.scripting.Options.setBoolean(Options.java:234)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142)
      ... 21 more

      I think the problem using GUI to program was caused by my virtual Linux machine and USB drivers. I will verify my .elf file in order to verify the flashing of the device form GUI.

      Thanks,

      Jonas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Victor Yang
      Posted by Victor Yang
      on Jan 25 2013 09:41 AM
      Verified Answer
      Verified by Firefighter
      Intellectual770 points

      Hi Jonas,

      The command line won't work with CC2538 in that version, it is a known issue and will be fixed in the next version. In the meantime, i guess you will have to make do with the GUI. This known issue is listed in the release notes: 

      http://processors.wiki.ti.com/index.php/CCS_UniFlash_v2.0_Release_Notes#Known_Issue.28s.29

      Regards,

      Victor

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Firefighter
      Posted by Firefighter
      on Jan 25 2013 11:04 AM
      Expert5430 points

      Victor,

      Ok, I see. Looking forward to next release, with support for command line tools for CC2538.

      Thanks for your support!

      Cheers,

      Jonas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use