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.

Not able to upload code on cc 2538dk board from ubuntu 12.04 command line

Other Parts Discussed in Thread: UNIFLASH, CC2538

Hi,

I have a cc 2538dk board.Iam using ubuntu 12.04. Iam using contiki repository from github.I was able to compile all the code in contiki but iam not able to upload the code to the cc 2538dk board.

The error iam getting when i type the command make TARGET=cc2538dk hello-world.upload is as below

make: *** No rule to make target `hello-world.upload'.  Stop.

I used Uniflash tool to upload the the .elf code but was of no avail.

Please help me in this matter.Please send me the commands if possible to upload code on cc2538dk on ubuntu 12.04.

Thanks in advance for any help on this.

  • Hi Chetan,

    Are you using the correct TI compiler? Please specify the codegen tool version you are using, then attach the full command you are using to compile your files.

    By default we don't output target binaries in .elf, and from that error message it shows that your make fail, are you sure everything compiled successfully?

    Victor

  • Hi,

    Thanks Victor, Thanx for the reply,

    The below is the link i used to install uniflash v 2.2 and i have used ARM code sourcery tool chain for CC 2538.

    http://energy.eecs.umich.edu/wiki/doku.php?id=ref:cc2538:start

    The error iam getting after i selected my .ccxml(which i have saved in the path as mentioned in the error below) file by clicking on open target configuration and load program are as follows(Note i selected the .elf file)

    [15:18:16] Error: Open ccxml at path=/home/user/Documents/eraseoptions.ccxml failed: File is locked by another process.
    [15:18:31] Begin Launching session operation...
    [15:18:32] ERROR >> Cannot read System Setup data from XML file /home/user/thinksq/mist-master/platform/mist-cc2538dk/CC2538.ccxml
    Error parsing file:
    Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/user/thinksq/mist-master/platform/mist-cc2538dk/devices/cc2538.xml while parsing file: /home/user/thinksq/mist-master/platform/mist-cc2538dk/devices/cc2538.xml
    [15:18:32] com.ti.debug.engine.IApplication$InitializationException: Cannot read System Setup data from XML file /home/user/thinksq/mist-master/platform/mist-cc2538dk/CC2538.ccxml
    Error parsing file:
    Fatal Error at (0, 0): An exception occurred! Type:RuntimeException, Message:The primary document entity could not be opened. Id=/home/user/thinksq/mist-master/platform/mist-cc2538dk/devices/cc2538.xml while parsing file: /home/user/thinksq/mist-master/platform/mist-cc2538dk/devices/cc2538.xml
    [15:18:32] Operation Launching session returned.
    [15:18:32] Loaded target configuration from: /home/user/thinksq/mist-master/platform/mist-cc2538dk/CC2538.ccxml
    [15:18:32] Error: Failed to save /home/user/thinksq/mist-master/platform/mist-cc2538dk/CC2538.uniflashsession. Please manually specify a valid path to save your session file. /home/user/.TI/1075815565/0/0/temp_session.uniflashsession (No such file or directory)
    [15:18:39] Error: saving file at path=null failed: Argument cannot be null

    Let me know if iam doing anything wrong.Should i add nething or a file is broken etc.

    Kindly help,thanx in advance

    Chetan

  • The above is the screen shot of the error page .

    Chetan

  • Hi Chetan,

    It appears the target database xml files related to cc2538 was not found in the .ccxml lookup path.

    Where did you get your .ccxml file? If you grabbed it off from someone else, please open it up and edit the path to make sure it is pointing to the right locations in the UniFlash install directory. Or, you can create a .ccxml file using the UniFlash tool. I have verified this and it should work.

    Regards,

    Victor



  • Hi Victor,

    Thanks for the reply,now i have resolved the .ccxml file issue.Iam able to load the configuration.I have attached the .ccxml file for your reference.I have given the path of .ccxml file where it is residing in vi ~/.bashrc also and performed source ~/.bashrc.You can see the same from the screenshot below.You can also see a error which iam getting after i load the blink.elf file after i selected menu--->load program---->blink.elf.

    After i upload the program iam getting error like the IcePick_c error or the Uniflash will completely exit.

    Kindly help me resolve the issue.

    1070.cc2538sf53.rar

  • Chetan,

    This is an emulation error, you might need to check your setup. I will attach one of our test .out file, make sure your setup can load this one successfully.

    Please send me your .elf file as well, I will try loading it on my end. You can send it to me directly at v-yang@ti.com

    Regards,

    Victor

    7725.modem_onepass.zip

  • Hi Victor,

    Sorry for the late reply.Well i uploaded the .out file you sent me and iam still getting the same error

    Just go through the above and kindly resolve the same.I have attached the .elf file too for your reference and i have sent a mail to Mr.Yang and your Indian counterparts.Kindly resolve the issue with your tool as early as possible.

    Regards

    Chetan

  • Hi Victor,

    The .elf file is attached for your reference

    Regards

    Chetan6177.ELFFiles.rar

    ELFFiles.rar