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.

CC2538 Contiki uniflash on Linux

Other Parts Discussed in Thread: CC2538

Hello

I am trying to get a toolchain up and running on Ubuntu 12.04 for the CC2538 and Contiki.  I seem to be able to build and simulate devices using the contiki tools however I am having issues with Uniflash.  I did some searching through the forum and think I am on the right path but  I am stuck at uploading the CC2538-demo to my CC2538EM connected through a SmartRF06.

I created a project in CCS on linux to blink the CC2538 LEDs.  I validated that I could talk to the board and download code using CCS.  I then copied the .ccxml file from CCS to my contiki build folder.  I then tried to use uniflash to download the contiki example to my board (CC2538-demo.elf).

Here is my command line for uniflash:

sudo /opt/ti/uniflash.sh -ccxml CC2538SF53.ccxml -targetOp reset -program cc2538-demo.elf

Here is the response:

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

<START: 23:05:06 GMT-0400 (EDT)>

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

> Flash Manager is configured for the following part: CC2538SF53

> Connecting to the target for Flash operations ...

SEVERE: 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.1.73.0)

SEVERE: emulation failure occurred SEVERE: Error connecting to the target: emulation failure occurred > Error connecting to target.

<END: 23:05:09 GMT-0400 (EDT)>

<Total Time: 2.657s>

What is going on?  I also get a similar error if I try to use the Uniflash gui.

[22:54:52] Begin Launching session operation... [22:54:53] Cortex_M3_0: GEL Output: Memory Map Initialization Complete

[22:54:54] Operation Launching session returned. [22:54:54] Loaded target configuration from: /home/lab/source_code/contiki/examples/cc2538dk/CC2538SF53.ccxml [22:55:12] 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.1.73.0)

[22:55:32] Load program operation failed: Connect to target failed. [22:55:58] Error: Open ccxml at path=/home/lab/source_code/contiki/examples/cc2538dk/CC2538SF53.ccxml failed: File is locked by another process.

Thanks

-Geof