Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: TCL_Open / TCL_Close Broken?
PostPosted: Wed Aug 17, 2011 12:06 am 
Offline

Joined: Mon Aug 15, 2011 11:49 pm
Posts: 4
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"


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: