Dangerous Prototypes

Dangerous Prototypes => Bus Pirate Support => AVRDude => Topic started by: jamesC4S on March 16, 2013, 02:03:11 am

Title: Programming Arduino Bootloader takes 10+ Minutes
Post by: jamesC4S on March 16, 2013, 02:03:11 am
Programming an arduino bootloader on an ATmega328 is taking on the order of 10-15 minutes to complete.

Here's the command I'm using:
avrdude -patmega328p -c buspirate -P /dev/tty.usbserial-A6005lHR -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m -U flash:w:optiboot_atmega328.hex

Here's the initial output:

Code: [Select]
Detecting BusPirate...
** 
**  Bus Pirate v3b
**  Firmware v5.10 (r559)  Bootloader v4.4
**  DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
**  http://dangerousprototypes.com
**
BusPirate: using BINARY mode
avrdude: AVR device initialized and ready to accept instructions

Any ideas why it is taking so long?  Have I missed something?

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.00912051048session_write_close ( )...(null):0
20.00942182640ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.00942183416Database_MySQL->query( ).../DatabaseHandler.php:119
40.05312322152Database_MySQL->error( ).../Db-mysql.class.php:273