Use wiring instead of stk500v2 protocol for the avrdude to resolve the reset issue.