Uno 328p, ethernet shield and debugWire :-)

ok here my "problem"....
I only have uno in hands right now so I started using one for a new project using Atmel Avr Studio :o)
at some point I had to debug my code and just found out the 328p only have debugWire,
so after fiddling around I found that removing the reset link permit debugWire.

so no problem, now I just got a ethernet shield so I can export data to web....
everything work fine until I want to used debugwire with the ethenet shield ...

first thought is to cut reset from ISP connector, I can live with a manual reset of the shield ... but ...

anyone already find out how and what to cut to have debugwire running ?

:slight_smile:

Which avr debugger are you using?

Maybe if you remove the shield, run debugwire and connect the shield again, its kinda tricky but might work without modifying the shield.

It is working :slight_smile:

I didn't find a lot of information on debugwire (DW) but, I can imgine how this work after turning DW fuse on and a reboot of your uCtrl DW change the function of the reset pin for some kindof for 2ways1wire communication protocol, so of course anything link to the reset will see some highs and lows on that line so possibly reset them self all the time too...

So, back to the arduino shield I did cut out traces around ISP connector and reset pin header, so by this I isolate the reset going to the wiznet ic. So cool stuff ! it works nicely ! well DW is slower than JTAG but everything work great.

Now I have 2 "clone" internet shields, the reset routing is logically the same but not physically the same on he PCB, so you will have to find yourself where to cut you trace ...

so have fun :slight_smile:

voidptr:
It is working :slight_smile:

I didn't find a lot of information on debugwire (DW) but, I can imgine how this work after turning DW fuse on and a reboot of your uCtrl DW change the function of the reset pin for some kindof for 2ways1wire communication protocol, so of course anything link to the reset will see some highs and lows on that line so possibly reset them self all the time too...

So, back to the arduino shield I did cut out traces around ISP connector and reset pin header, so by this I isolate the reset going to the wiznet ic. So cool stuff ! it works nicely ! well DW is slower than JTAG but everything work great.

Now I have 2 "clone" internet shields, the reset routing is logically the same but not physically the same on he PCB, so you will have to find yourself where to cut you trace ...

so have fun :slight_smile:

It's great that you got Debugwire running on Arduino. There's little info about it, I blew my AVR Dragon trying to get it on DW mode :(. Which avr debugger are you using? Dragon or other?

I have a trusty Dragon :slight_smile:
I was using it mostly for ISP programming and JTAG debugging on Atmega2560...
But while fiddling around debugwire I also brick my dip 328p few times so I also used for the first time the
high voltage programmer (HVPP) .

:slight_smile: