I built a proto with a tiny2313, programmed it with ISP, then enabled debugwire. At this point I got stuck: AVR Studio tells me to use ISP when I am using debugwire, and debugwire when using ISP.
After some search I found it was a well known problem. I tested the solutions there: put a pullup on RST, connected extra ground wire, checked RST on scope, all with both AVRICE mkII, and Dragon. No success at all, the device is dead-locked. It looks like the only known fix is parallel programming - which is not easy with smd. All this trouble is just because I set DWEN active.
Having a deadline I finally replaced 2313 and went on without debugwire. But I am still curious, how to use it?
I'd really appreciate any experiences here.