Failed to launch debug session with debugwire

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

For my current project I am using Atmel Studio 6 for the first time after using AVRstudio 4 happily for years. The target is an ATMega328p on our board. The programming interface is a JTAGICE Mk II with the supplies 6 pin isp adaptor. Atmel Studio 6 V6.0.1966 SP2
AVRGCC V462. This is also my first experience with the Debugwire interface. It seems that sometimes I lose the ability to connect withe the debugger. When I go to download the code I get a message box that says

"Failed to launch debug session with debugwire. This could be caused by reset line circuitry or disabled debugWire interface. Make sure that the reset line is free before continuing. Do you want to use SPI to enable the DWEN fuse?"

No hardware has changed and everything was working previously. If I click yes to enable DWEN fuse it fails. I have also not been able to disable the DWEN fuse. I have been able to get it working in the past by cycling power, restarting Atmel Studio, Restarting my computer, or some combination of these things. Currently it has been in this state for 2 days and I am up against a deadline. Any suggestions?

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

What circuitry do you have connected to the _reset pin?

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

A 10k pullup to 3.3 VCC

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

Are you sure that there is no capacitor?
Remove all capacitors from the RESET line.
Check that your 10k really is 10k.

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

Quote:
I am up against a deadline. Any suggestions?
If AS4.18 is still installed then switch back to that, downgrade the debugger's firmware, and see if it works.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Resolved. I traced it to a broken wire from my target to the ISP header.