Да, они так и пишут:
Цитата
The JTAG interface is only enabled by the JTAGEN
fuse, plus the JTD bit in MCUCR must not be set. OCDEN is only
required for on-chip debugging, and like AVR Studio, AVaRICE is
supposed to automatically handle setting this fuse when starting a
debugging session.
Типа для того чтобы работал JTAG - достаточно флага JTAGEN и снятого JDT, но выставление этого флага помогло, и чуваки предположили что:
Цитата
However, I've seen one scenario where a deactivated OCDEN fuse causes
similar JTAG connection issues as seen by the submitter of this bug
report: the device in question entered power-save sleep mode, and
while being in that kind of deep sleep, the JTAG communication cannot
be initiated. Setting the OCDEN fuse, however, effectively prevents
the device from entering a real power-save state, so JTAG still works.
Типа мой AVR ушел в глубокую спячку, и с ним невозомжно было установить коннект, а когда я выставил OCDEN - он начал работать нормально. И предложили:
Цитата
I think we should be able to handle that situation, probably by making
the ICE pull the nSRST line before trying to initiate the JTAG
communication. A device being in reset state is not supposed to
sleep, so JTAG comm ought to work. (This will also help in situations
where JTD is being set early within the application, but obviously
only until the application reaches the instruction that sets JTD.)
Может доделают такую штуку в следующей версии avarice...
---
Ха! Вот еще новости.
Я залил в AvrStudio4 в Windows в свою ATmeg-у другую программу. Пустую, чисто для теста с void main (void).
И теперь у меня устройство видится и шьется и в avarice и в avrdude в Linux даже _без_ OCDEN бита!
Следовательно причина бага кроется где-то в старом коде, видимо он на самом деле вгонял девайс в глубокую спячку.
Причем AvrStudio4 у меня все время спрашивало перед тем как залить:
Цитата
Failed to identify target. Would you like to retry with external reset enabled?
А теперь перестало.
Осталось чтобы этот "external reset" добавили в avarice или avrdude.