"Failed to enable DW" error message : trying to program Arduino UNO with Atmel ICE

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

Hi All,

 

I'm trying to get a simple LED blink program running on an Arduino UNO from Atmel Studio 7 on Windows 10.  I have the 6 pin ISP connector from the ICE connected to the UNO board, have it powered on, and have the ICE selected as the programmer tool in the IDE.  I have the interface selected as "debugWire" (other choice was ISP).  When I hit the "Start Debugging and Break" menu option I first see the dialog asking to use SPI to enable the DWEN fuse.  I select yes to this.  I then get the "Failed to enable DW" error message as shown in the screenshot.

 

Can anyone advise what is going wrong?

 

Thank you,

FW.

 

This topic has a solution.
Last Edited: Mon. Jun 11, 2018 - 08:07 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you made the hardware mod to the Arduino so debugWire can be used?

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

No.  What mod. is required?

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ever heard of Google? But the bottom line is dW needs NOTHING connected to _Reset. The board should have a solder bridge you can break to ensure this.
.
Actually google brought me back to here... https://www.avrfreaks.net/forum/arduino-uno-and-avr-70-ice-debugging-possible

Last Edited: Mon. Jun 11, 2018 - 07:16 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks.  Once I de-solder this bridge, will I still be able to program the board via the Arduino IDE, or will it be ICE only from that point?

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

Edit above.

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

OK, got it working.  As advised, I had to de-solder the bridge labelled "REST ON" on my Uno.  For other readers this is the red boxed area in the pic. below.

 

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

I think youll find that is "RST EN" (reset enable)

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

fastwalker wrote:
Thanks. Once I de-solder this bridge, will I still be able to program the board via the Arduino IDE, or will it be ICE only from that point?

 

With solder bridge on, == Arduino bootloader program loading only

With solder bridge off, == ISB programmer only + debugWire debugging

 

Note: once you have loaded a program via the ISP, the bootloader will be overwritten, to restore Arduino bootloader operation, you must burn bootloader using ISP, THEN add the solder bridge!

 

Jim

 

 

 

 

Mission: Improving the readiness of hams world wide : flinthillsradioinc.com

Interests: Ham Radio, Solar power, futures & currency trading - whats yours?