I post here after having searched the net for clues on this error without success, I will be glad if some is able and willing to help me with this showstopper.
I have seen two error messages, either DW fails to synchronize, or set parameter command failed.
Lenovo W500 dual core 4GB ram 2.8GHz, I also tested with a Lenovo T51 dual core 2GB ram and 2.2GHz to see if the PC processer speed mattered.
AVR dragon or JTAGICE mk2 connected via USB, both with same error messages using debugwire.
The AT90PWM3B is located on yet another switch mode supply PCB I have designed and built. The 5V supply is stable, the PCB is just in this early test phase populated with a 5V supply and the AT90PWM3B running with a 16MHz crystal.
All connections has been checked and re-checked, and the reset line is clean from load, except for a 82kOhm pullup. I have also tried with another AT90PWM3B chip, same result.
I use Linux Mint 14 64 bit version on the W500, and Ubuntu 12.04 on the T51.
I have used the avarice ver. 2.10 from the repository, and I also downloaded and built avarice 2.13, which fails the same way as ver. 2.10.
I can program the fuses correctly and succesfully download a program in ISP mode, I programmed the CLKO fuse to see the system clock on the CLKO pin and blinked a LED.
I can use avrdude to program DWEN fuse to enable debugwire.
I can use avrdude to "un program" DWEN to enable ISP mode again.
What don't work:
I can in no way get debugwire to work, this is the first time I have had this persisting problem.
Let me add that I have made around 10 PCB's with tiny AVR's and small mega AVR's where I have used debug wire successfully.
I have also tested that the Dragon which does not work with the AT90PWM3B works OK with a mega328 on another PCB I have made.
So either I have turned my blind spot to the cause of this problem, or something is not good with the combination of avarice and AT90PWM3B.
I will be thankful for any help, and deliver screendumps requested by helpers.