Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Trouble using AVRISP mkII to read flash of ATMega32U4

Trouble using AVRISP mkII to read flash of ATMega32U4

2013-11-18 by edjubenville@att.net

Newbie here... I need to save the program of a development board with an ATMega32U4 installed before I overwrite it with a new program. I'm trying to use avrdude included with WinAVR to do this using an AVRISP mkII programmer.

The programmer shows up at COM9. I edited the avrdude.conf file to set the default comport. I tried the following avrdude command line to read it:

c:\WinAVR-20100110\bin\avrdude.exe -p m32u4 -c stk500v2 -U flash:r:"c:\save.bin":r

That didn't work. It gave me a bunch of timeout messages like this:
avrdude.exe: stk500_2_ReceiveMessage(): timeout

For all I know, the previously loaded firmware may have been programmed with protection to prevent readback. Is this the symptom I would see?

Any debugging suggestions would be appreciated!

Re: [AVR-Chat] Trouble using AVRISP mkII to read flash of ATMega32U4

2013-11-18 by John Samperi

At 04:11 AM 19/11/2013, you wrote:
>the previously loaded firmware may have been programmed with 
>protection to prevent readback.

Most likely but the read back program would still work
except that it would simply read rubbish instead of the
chip's data.

As far as using avrdude I have no idea as I have always
used AVR Studio for programming.

Regards

John Samperi

********************************************************
Ampertronics Pty. Ltd.
11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA
Tel. (02) 9674-6495
Website  http://www.ampertronics.com.au
*Electronic Design * Custom Products * Contract Assembly
********************************************************

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.