I apologize, but I don't know TCL well enough to get this working.

I'm trying to display an obvious message to determine whether verify_image 
succeeded or failed. My script is the following:

===========================================================
source [find interface/jtagkey2.cfg]
        
adapter_khz 3000

set CHIPNAME k10

source [find target/k40.cfg]

reset_config trst_and_srst

flash bank $_CHIPNAME.pflash kinetis 0x00000000 0x80000 0 4 $_TARGETNAME

init

reset halt

flash write_image erase unlock c.out

echo "-------- Done programming, verifying --------"

verify_image c.out

if {
    verify_image c.out
} then {
    echo "-------- verify succeeded. Done!!!!! --------"
} else {
    echo "-------- verify failed. Reject. -------------"
}
sleep 5

shutdown
===========================================================

The verify_image line by itself works, but I get a syntax error on the if 
statement.

What should I be doing? Thanks.

Alex Austin
Associate Software Engineer

Spectrum Design Solutions
110 N 5th St Ste 400
Minneapolis MN 55403-1631

Direct: +1.612.435.5537
Main: +1.612.435.0789
Mobile: +1.651.238.9273
Email: [email protected]

www.spectrumdsi.com


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to