avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] Butterfly proposal: Exit upgrade function


From: Martin Thomas
Subject: [avrdude-dev] Butterfly proposal: Exit upgrade function
Date: Tue, 27 Jan 2004 14:54:08 +0100

Hello,

I've tested the avrdude cvs code with the AVR Butterfly.
Everything works as expected but the Butterflys Bootloader
stays in "command receive mode" with the current avrdude
since the function "Exit upgrade" is never called by avrdude
as far as I can see this from the code. 
With an added call for "exit upgrade" it is no longer necessary
to reset the BF after a firmware update with avrdude.
I suppose 'E' is sent by AVRPROG when pressing the 
[Exit] button. So the butterfly_close functions might be a good 
place to add the call.

Proposal: in butterfly.c
 static void butterfly_close(PROGRAMMER * pgm)
 {
   no_show_func_info();

   butterfly_leave_prog_mode(pgm);+  butterfly_send(pgm, "E", 1);
   serial_close(pgm->fd);
   pgm->fd = -1;
 }Martin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]