Can't select debugWire with ATmega88

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

I have Atmel Studio v6.2 and a AVR JTAG ICE MK2 with firmware v7.26, when I connect my ISP and debugWire to the target I can read voltage, signature, fuses etc...

But in the dropdown windows I have only ISP option and no debugWire option. Does anybody has clue why is this? In the documentation I read that older revisions had broken PDI and aWire interfaces, but nothing mentions a debugWire.

I have no caps, resistor on the reset, it's plain CPU with nothing else in between, running at the 1MHz internal oscillator with communication frequency set to minimum.

The moment I enable DW fuse I will lock myself from the CPU, as I can't switch to the debugWire to disable it. 

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

I have a JTAGICE-mkII but only have AS7.
From memory, Atmel went through all sorts of stages in AS6 when they would destroy mkII drivers and functionality.
.
If you are prepared to install AS7 it should work fine on AS7. I will try it for you on debugWIRE.
.
Otherwise you will have to wait for a 6.2 dinosaur to try it. I believe that there is one living in Sydney.
.
David.

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

I've never been too impressed with Debugwire, even when it's working.  I use my own means that are hassle-free.

When in the dark remember-the future looks brighter than ever.

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

Go on.   debugWIRE appeared over 10 years ago.   Does not use any GPIO pins.    I don't think any other manufacturer had anything similar.

 

Yes,  UPDI is massively faster than debugWIRE.   But UPDI uses an extra pin.  PDI uses 2 pins.   JTAG uses 4 pins.

 

debugWIRE performs a very useful task when debugging a Tiny (or smaller Mega packages)

It is better than nothing.    However you still need to obey the rules.

 

David.

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

I believe that there is one living in Sydney.

Never met one here, maybe Long Island NY.....

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

I remember many years ago that I was using it, but do not recall what target (probably not the Mega88, maybe on a tiny, or on something bigger than 88) and it was annoying to disable debugWire just temporary to enable the ISP back. So yes, it's annoying, but when you want stepping through the code it's better than ISP. And I remember that not all versions were upgrade as some were worse and more bloaty/slower than the older versions, so I started today with version 6 hoping it's the right version.

 

I upgraded to Studio 7, upgraded the driver and the firmware now to 7.27. And still I don't have the option in the dropdown for debugWire on Mega88, only ISP (is debugWire it even working on 88?). I might have to use full JTAG on a bigger target and when the code will be ready, port it to the Mega88

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

annoying to disable debugWire just temporary to enable the ISP back.

Why do you want to re-enable ISP? You can leave your development board in DW mode for ever if you wish, you only need to re-enable ISP if you have completely finished debugging and of course you should not sent out a board with a chip that has been used extensively for debug.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

What drop-down are you looking at? The one in the project settings or the one in the programming dialog?

:: Morten

 

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

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

It was the programming dialog (see the screenshot, for the mega88 I have only ISP option).

 

Then I upgraded to AVR Studio 7 and upgraded the firmware to 7.27 and still no luck. From frustration, I went to microchip direct to get some upgrade for my clearly again jtag programer, the AVR one is bit too much for my likings. And the AVR dragon is not even on the shop, so I went to ebay and got (hopefully) new AVR dragon (waiting it to arrive). Would ye say the AVR Dragon should be hassle-free with all protocols, or is there something else (except avrone).

 

Hope the avrgradon will be able to talk to the atmel88 with debugWire.

Attachment(s): 

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

js wrote:
Why do you want to re-enable ISP?

 

Because the debugWire was slow, finicky and my other more portable ISP based programmer has only ISP. So I was using ISP for most of my life and only used JTAG/other protocols only when I really needed and tried to use the ICE mk2 as little as possible because at that time when I was very active with this the price of the JTAG was huge for me and I didn't want to break it.  

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

dW is not listed in the programming dialog, as it is a debug-only interface. Make a project and you should be able to select dWbin the project

:: Morten

 

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

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

Because the debugWire was slow

DW is ONLY supposed to be used during debug sessions and not as a general programming option.

 

So you go into DW, debug your code in an hour, a day, a week or a year and leave the chip in that mode until finished, then you either replace the chip if it's going into the field or keep the board for more debugging if necessary for other projects.

 

All your other production boards come already with ISP enabled so you never need to go into DW mode.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

 

meolsen wrote:
dW is not listed in the programming dialog, as it is a debug-only interface. Make a project and you should be able to select dWbin the project

 

Yes that was it, I'm just stupid :D So that's why I can recall it was working and now it was not. Because I was using it badly.

 

Thank you very much.

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

js wrote:
DW is ONLY supposed to be used during debug sessions and not as a general programming option.

 

Yes, that's why for regular programming options, or troubleshooting where I can make few guesses without using JTAG/debugWire etc... was done through ISP.

 

js wrote:
or keep the board for more debugging if necessary for other projects.

 

Yes I kept the boards for other projects or other problems where I didn't need to debug or I need debug something which could be done with verbose printf and didn't justify switching it to proper debuging.

The machine where I wrote most code was linux and that had isp programmer, while I had the jtag with a windows machine and I tried to not spend much time with the windows/jtag/debugWire. So the moment I didn't really needed, switched back to ISP and used the linux machine.

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

I see, it helps if one provides the full picture. smiley Otherwise the usual ASS_U_MPTION is a Studio user.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Yes :-)