Debug Wire emulator does not work

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

I am a new user of Atmel Studio 6 (Version: 6.1.2730 "“Service Pack 2). I am running an ATMEGA88A on the AVR DRAGON development board. The ATMEGA88A is in a ZIF socket on the development board. The expansion port has the connections recommended by Devicesheet: SCKT3200D2:
pin 1 ISP pin 5
pin 7 +5V on the Dragon bd
pin 8 ISP pin 6 (GND)
pin 17 ISP pin 4
pin 18 ISP pin 1
pin 19 ISP pin 3
In addition I made the following connections:
pin 20 +5V on the Dragon bd (through an inductor)
pin 21 decoupling cap to GND
pin 22 GND
Pins 20 and 7 have decoupling caps to GND right at the expansion connector.
I am running the factory default clock (internal 8MHz with divide by 8 prescaler).
I did not change any of the factory default fuses. When I try to run the Debug Wire emulator I get the following error message:
" ISP on AVR Dragon (00A200047868) does not support debugging. Device is only programmed. Use Start Without Debugging to avoid this message"
My program loads and runs fine, I just can't emulate. Does anyone have any suggestions on how I can get the emulator to work?

I found that I needed to select "debugWIRE" as the Interface. I did that. Now I get a different error message: "Atmel Studio was unable to start your debug session.Please verify device selection, interface settings, target power and connections to the target device." Does anyone have any ideas?

Thanks,

Oresto

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

It seems the same error I have with ATtiny4313 and JTAGIC3.

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

Try Atmel Studio 6.2 beta, as it contains a fix for activating a dW session.

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

Yes, Atmel Studio 6.2 beta works for emulation with debugWire. Thank you, Morten! :D

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

Yes, Atmel Studio 6.2 beta works for emulation with debugWire.

 

But now I can not exit debugWire mode!

 

I am running Atmel Studio 6.2.993 - beta. After my debug session I want to go back to ISP programming mode but can not. I pressed the Stop Debugging button (Cntrl-Shift-F5), then I changed the tool settings from debugWire back to ISP. When I attempted to read the device signature I got the message:

"Unable to enter programming mode.

Please verify device selection, interface settings, target power and connections to the target device."

 

Cycling power does not help.

 

Does anyone have any suggestions?

 

thanks,

oresto

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

In the documentation, look at 'Disable debugWire and close'...

 

TL;DR, when dW is enabled, it is kept enabled until you explicitly disable it. This is so that it is not neccesary to have ISP connected each time a debug session is entered.

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

Morten, you are a life saver...and thank you for the very fast response.

I am now really enjoying my Atmel experience !! :D

Thank you, thank you !!

oresto

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

Atmel Studio 6.2 beta worked for emulation with debugWire. I could enter and exit the debugWire emulator.

Then my computer crashed and I had to reload everything. I am now running and older version of Windows 7 Home premium 64-bit (service pack 1).

I can still enter and exit the emulator but I can not set break points. Is this because I need to install more current windows updates??