|
Hi All,
I am wondering if TCL_Open/TCL_Close is broken. The following simple script attempts to:
1. Open 2. Close 3. Open 4. Close
...in that order, against a file represented by \Jlink\ARM0.
The first Open/Close pair works. At #3, the Open fails. I am perplexed by this!!!!!
Hoping someone can explain.
Regards,
-JC
load "C:/Program Files/ATMEL Corporation/SAM-BA v2.10/drv/AT91Boot_TCL.dll" At91boot_tcl
set mypath "\Jlink\ARM0"
puts "Trying to open the first time:" set fp [TCL_Open mypath] puts "Trying to close the first time:" TCL_Close $fp puts "fp is $fp"
puts "Trying to open the second time:" set fp [TCL_Open mypath] // <-------------- THIS FAILS!!! -------------WHY???? puts "Trying to close the second time:" TCL_Close $fp puts "fp is $fp"
|