Fri 19 May 2006 08:53:25 AM UTC, original submission:
When programming with the AVR Butterfly serial interface, and the standard shipped bootloader, the butterfly will not reset with the "UP" joystick key after programming.
I notice in the avrdude sourcecode, that the appropriate "Exit" command has been added:
static void butterfly_close(PROGRAMMER * pgm)
{
no_show_func_info();
/* "exit programmer" added by Martin Thomas 2/2004 */
butterfly_send(pgm, "E", 1);
serial_close(pgm->fd);
pgm->fd = -1;
}
To make the exit work for me (using a USB->Serial converter if that makes a difference), I had to add:
butterfly_vfy_cmd_sent(pgm, "exit bootloader");
after the butterfly_send command.
My thought is that the serial link may be closed down before the "E" command actually reaches the butterfly, and the verify gives time for this to happen. This is just a guess though.
With the verify line, it works for me. Perhaps others could test it and add that line back into the codebase.
Regards
Peter Clifton
|