Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - curly.cz

1
Bus Pirate Support / AVRdude vs. BP is very slow
I'm having troubles with speed of programing AVR targets with AVRdude and BP. Everything works fine, but slow. Changing in -x spifreq=0..7 makes no change at all. This is debug out from my console

c:avrdude-5.10>avrdude -c buspirate -p atmega8 -P com5 -v

avrdude: Version 5.10, compiled on Jan 19 2010 at 10:45:23
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:WinAVR-20100110binavrdude.conf"


         Using Port                    : com5
         Using Programmer              : buspirate
         AVR Part                      : ATMEGA8
         Chip Erase delay              : 10000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page
      Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  Max
W   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ---
-- ---------
           eeprom         4    20   128    0 no        512    4      0  9000  90
00 0xff 0xff
           flash         33    10    64    0 yes      8192   64    128  4500  45
00 0xff 0x00
           lfuse          0     0     0    0 no          1    0      0  2000  20
00 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  2000  20
00 0x00 0x00
           lock           0     0     0    0 no          1    0      0  2000  20
00 0x00 0x00
           calibration    0     0     0    0 no          4    0      0     0
 0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0
 0 0x00 0x00

         Programmer Type : BusPirate
         Description     : The Bus Pirate

Detecting BusPirate...
avrdude: buspirate_readline(): #
avrdude: buspirate_readline(): RESET
avrdude: buspirate_readline():
**
avrdude: buspirate_readline(): Bus Pirate v3
**  Bus Pirate v3
avrdude: buspirate_readline(): Firmware v4.5 Bootloader v4.2
**  Firmware v4.5 Bootloader v4.2
avrdude: buspirate_readline(): DEVID:0x0447 REVID:0x3043 (B5)
**  DEVID:0x0447 REVID:0x3043 (B5)
avrdude: buspirate_readline(): http://dangerousprototypes.com
**  http://dangerousprototypes.com

===========================================================================
Here it hangs for approx. 20s...
===========================================================================

avrdude: buspirate_readline(): HiZ>
**
BusPirate: using BINARY mode
BusPirate binmode version: 1
BusPirate SPI version: 1
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.10s

avrdude: Device signature = 0x1e9307
avrdude: safemode: lfuse reads as EF
avrdude: safemode: hfuse reads as C9

avrdude: safemode: lfuse reads as EF
avrdude: safemode: hfuse reads as C9
avrdude: safemode: Fuses OK
BusPirate is back in the text mode

avrdude done.  Thank you.


And loading of 6.8kb hex file takes about 120s ;((

Any ideas?

( ! ) 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.01202273912session_write_close ( )...(null):0
20.01232405504ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01232406280Database_MySQL->query( ).../DatabaseHandler.php:119
40.06072545008Database_MySQL->error( ).../Db-mysql.class.php:273