How can I disable the jtag in atmega 32 using serial programmer?
(from http://www.avrfreaks.net/index.php?name=PNphpBB2&amp;file=printview&amp;t=53097&amp;start=0)

avrdude -U hfuse:w:0xD9:m


Or:

ldi   temp,0x80
out   mcucsr,temp      ;JTAG
out   mcucsr,temp      ;disabled


(I have not tested either of these as I have no ATmega32. Messing with AVR fuses can potentially brick your chip unless you  have a high voltage/parallel programmer, caveat emptor...)