I'd love to know if I'm the useless one or Atmel cannot supply basic information with their products.
I managed to work out the orientation of the 6 pin SPI plug by following wires and looking at the wiring table in the Atmel-ICE user guide. It would have been simpler if Atmel could have actually shown the locating bit of the plug in the diagrams so you know which way round the plug is.
Anyway, that aside, I've managed to use the Atmel-ICE to program an ATMEGA328P, using Atmel Studio 6.2 last version.
When I try to start debugging (Debugging / Start Debugging and Break) I get the following message:
ISP on Atmel-ICE does not support debugging. Device is only programmed.
Use Start Without Debugging to avoid this message.
That's a lot of use Atmel. Get around a problem by doing a different task. From Google/Youtube, etc I was expecting a different error message that gave me an option of AS setting the DWEN fuse for me, but maybe that was in an earlier release of 6.2.
There's an option to disable Debugwire in the debugging menu, but no option to enable it. The Atmel-ICE user guide doesn't actually tell you the steps to enable the DWEN fuse, and I don't want to brick the chip. The user guide does say:
It is highly advised to simply let Atmel Studio handle the setting and clearing of the DWEN fuse.
I'd love to if the manual told me how.
So to enable the DWEN fuse do I go back to programming and tick the DWEN fuse box, then program again. When I simply put a tick in the DWEN box there's an exclamation mark there and when I hover over it a message pops up saying:
Value has been modified but not programmed
That's why I'm guessing I have to press program again ????????????
It's all very confusing because I though you can't program in SPI while DWEN is set, so if I program DWEN can I not reprogram to unset it.
EDIT:
I was twiddling my thumbs and thought stuff it. Ticked the DWEN fuse box and pressed PROGRAM. Now the Atmel-ICE won't even connect to the chip anymore. Tried powering the AVR board on and off but same result. Looks like my first AVR bricked.
When I try to start debugging I got the same message as last time, the:
ISP on Atmel-ICE does not support debugging. Device is only programmed.
Use Start Without Debugging to avoid this message.
I click OK to shut that box down then another one pops up afterwards saying the following:
Failed to launch program.
Error: Failed to start programming session before chip erase with eeprom preserve: Failed to
enter programming mode. ispEnterProgMode: Erro status received: Got 0xc0, expected 0x00
(Command has failed to execute on the tool)
Keith.