Other Parts Discussed in Thread: UNIFLASH
Tool/software: Code Composer Studio
Hi,
I'm trying to automate some programming of my Concerto based device. I am able to successfully program the device consistently using the Uniflash GUI but I can't figure out what I'm doing wrong with the command line tool.
My Uniflash version is 3.4 (4.0 won't work for serial programming Concerto devices) and I am running it on Ubuntu 16.04.
I created a .ccxml and .uniflashsession file (both are attached) through the GUI and am using them in my command line call as below:
/opt/ti/uniflash_3.4/uniflash.sh -log flash.log -verbose 1 -ccxml refbeacon.ccxml -core "C28xx_0" -loadSettings refbeacon.uniflashsession -program /home/mcmdev/software/3.0/channel_programmer/refbeacon3_channelboard_c28xx.out
What I get is the following. I'm not sure why it keeps saying file not found. If I pick the same file from the GUI, it works just fine.
***** Texas Instruments Universal Flash Programmer *****
<START: 19:13:21 GMT-0400 (EDT)>
> Flash Manager is configured for the following part: F28M35H52C1
> Loading settings from the given session file ...
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<PropertyValues>
<property id="VerifyAfterProgramLoad">
<curValue>Full verification</curValue>
</property>
<property id="AutoRunToLabelOnRestart">
<curValue>0</curValue>
</property>
<property id="FlashSerialCOMPort">
<curValue>/dev/ttyUSB1</curValue>
</property>
</PropertyValues>
> Settings loaded.
> Connecting to the target for Flash operations ...
SEVERE: C28xx_0: Error occurred during flash operation: open: No such file or directory
> Connected.
> Loading Program: /home/mcmdev/software/3.0/channel_programmer/refbeacon3_channelboard_c28xx.out
C28xx_0: Writing Flash @ Address 0x00100000 of Length 0x00003b7b (page 0)
SEVERE: C28xx_0: Error occurred during flash operation: open: No such file or directory
C28xx_0: Writing Flash @ Address 0x0010572a of Length 0x00000941 (page 0)
SEVERE: C28xx_0: Error occurred during flash operation: open: No such file or directory
C28xx_0: Writing Flash @ Address 0x001060a4 of Length 0x0000000a (page 0)
SEVERE: C28xx_0: Error occurred during flash operation: open: No such file or directory
C28xx_0: Writing Flash @ Address 0x00103b7c of Length 0x00001bae (page 0)
SEVERE: C28xx_0: Error occurred during flash operation: open: No such file or directory
C28xx_0: Writing Flash @ Address 0x00106086 of Length 0x0000001c (page 0)
SEVERE: C28xx_0: Error occurred during flash operation: open: No such file or directory
C28xx_0: Writing Flash @ Address 0x0010606c of Length 0x0000001a (page 0)
SEVERE: C28xx_0: Error occurred during flash operation: open: No such file or directory
C28xx_0: Writing Flash @ Address 0x0013fff0 of Length 0x00000002 (page 0)
SEVERE: C28xx_0: Error occurred during flash operation: open: No such file or directory
> Finish Loading.
> Disconnecting from target.
<END: 19:13:23 GMT-0400 (EDT)>
<Operation Time: 0.243s>
<Total Time: 2.694s>
I've tried the same command with the uniflashCLI.sh but that just gives me:
***** Texas Instruments Universal Flash Programmer *****
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 1
at java.lang.String.substring(Unknown Source)
at com.ti.uniflash.commandline.CommandLine.parseArgs(Unknown Source)
at com.ti.uniflash.commandline.CommandLine.main(Unknown Source)
Please advise.
Thanks,
Aditya