AVR Dragon and AVR Studio 5.0.1223

Go To Last Post
12 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So I've been gone most of the summer and I had to pack up some stuff while I was away. Now that I've returned had a serious problem and had to reload my machine with everything, OS included. So I got AVR Studio 5.0 out, updated to the new version did some work and worked fine, but wasn't using AVRDragon just Simulator. So today I want to get serious and hooked up the Dragon AVR Studio prompted to upgrade before I could continue so I did then tried to program a ATMega328p board that I've been using for quite a while, even used another board and am getting a "Failed to get interface clock value" error, in error popup window the details state "Failed to set interface [ISP]" and in the Studio output window it says
17:15:06.630: [ERROR] TCF command: Tool:setProperties failed: Code:1 ,Service:Tool ,Message from peer:Null pointer
17:15:06.654: [ERROR] Failed to set interface [ISP]
# Null pointer
17:17:39.769: [ERROR] TCF command: Tool:setProperties failed: Code:1 ,Service:Tool ,Message from peer:Null pointer
17:17:39.769: [ERROR] Failed to set interface [ISP]
# Null pointer
17:18:08.050: [ERROR] TCF command: Tool:setProperties failed: Code:1 ,Service:Tool ,Message from peer:Null pointer
17:18:08.050: [ERROR] Failed to set interface [ISP]
# Null pointer
17:18:11.590: [ERROR] TCF command: Tool:setProperties failed: Code:1 ,Service:Tool ,Message from peer:Null pointer
# Null pointer
# Error occurred in jtagice mkII event and response thread: Read from USB device endpoint 130 failed: HC status: PID stall (0xc0000004).
# Failed to execute command with ID 0x00.
# Attempted write to detached USB device.
17:29:47.497: [ERROR] TCF command: Tool:setProperties failed: Code:1 ,Service:Tool ,Message from peer:Null pointer
17:29:47.499: [ERROR] Failed to set interface [ISP]
# Null pointer
17:31:25.750: [ERROR] Skipping launch. User did not choose a debug tool.
# Null pointer
17:31:32.852: [ERROR] TCF command: Tool:setProperties failed: Code:1 ,Service:Tool ,Message from peer:Null pointer
17:39:15.547: [ERROR] TCF command: Tool:setProperties failed: Code:1 ,Service:Tool ,Message from peer:Null pointer
17:39:15.547: [ERROR] Failed to set interface [ISP]
# Null pointer

What the hell happened it was working slow but flawlessly when I left. Guess I was bragging on it to much. ???

Signed,
Bewildered

Happy Trails,

Mike

JaxCoder.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Downloaded the latest version 5.1 of the IDE and with a little finagling and a lot of swearing I got it to work.
It's not obvious that's for sure?

Happy Trails,

Mike

JaxCoder.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

What was the issue?

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I assume this was supposed to go on the end of https://www.avrfreaks.net/index.p... but OP used [New Topic] rather than [New Reply]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Topics merged.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dean,

I had multiple problems;
1) Chip I was using was bricked, will have to reset.
2) Drivers flakey because I'm running Windows 7 and am currently working to get drivers reinstalled after putting windows in Test Mode.
3) My stupidity :)

I have one more really stupid question. I can now debug in AVR Studio 5.1 but can't program with the Dragon or UsbTiny, which I could do before so I'm thinking that the debugger has the chip locked.
Is there something you have to do after debug session to restore the fuse so I can program normally?

Thanks,
Mike

Happy Trails,

Mike

JaxCoder.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Is there something you have to do after debug session to restore the fuse so I can program normally?

The debugger has an option (not sure where it's now hidden in AS5) to say "disable debugWire" but it's only available while you are actually debugging (or at least this was the case in AS4).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson,

Yeah I remember that option in AS4 that's what made me think that that might be my problem but haven't found that yet in AS5.1.

Thanks,
Mike

Happy Trails,

Mike

JaxCoder.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

but haven't found that yet in AS5.1

Which is amongst the many reasons why I'd still choose AS4.

If it ain't broke, don't fix it!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson,

Agreed but people were probably cussing AS4 till it got stable, which I would imagine took a while.

Happy Trails,

Mike

JaxCoder.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The option is in Debug->Disable Debugwire and Close.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dean,

Good god if it was a snake it would have bit me. :)

Thanks,
Mike

Happy Trails,

Mike

JaxCoder.com