Skip to main content

Show Posts

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

Messages - curly.cz

1
Bus Pirate Development / Re: Firmware v5.6
I got one simple idea. When we got servo signal generator. Why we would not upgrade it to full PPM generator, so you can feed RC transmitter for wireless servo control. what do you think?
3
Bus Pirate Development / Re: Firmware v5.0 to do
This is example from console...

SPI> [0x40 0xa1 0xc0 0xa6 0xa2 0x2f 0xf8 0x00 0x27 0x81 0x10 0xac 0x00 0xaf]
CS ENABLED
WRITE: 0x40
WRITE: 0xA1
WRITE: 0xC0
WRITE: 0xA6
WRITE: 0xA2
WRITE: 0x2F
WRITE: 0xF8
WRITE: 0x00
WRITE: 0x27
WRITE: 0x81
WRITE: 0x10
WRITE: 0xAC
WRITE: 0x00
WRITE: 0xAF
CS DISABLED

And my proposal is

SPI> [0x40 0xa1 0xc0 0xa6 0xa2 0x2f 0xf8 0x00 0x27 0x81 0x10 0xac 0x00 0xaf]
CS ENABLED
WRITE: 0x40 READ: 0x01
WRITE: 0xA1 READ: 0x02
....
....
4
Bus Pirate Development / Re: Firmware v5.0 to do
Hello everyone

just playing with one SPI device on my bench and i have found out that there is one thing which i miss.

When I write data to device, in SPI mode, you should receive another byte, so I would appreciate that this byte is displayed, ideally after command.

For example:

WRITE: 0x40 RECIEVED: 0x01

This is very usefull, when device operates in "window" mode...
5
Bus Pirate Support / Re: AVRdude vs. BP is very slow
Example from http://hintshop.ludvig.co.nz/show/buspi ... ogramming/
 
.../attiny2313/test $ avrdude -p attiny2313 -c buspirate
Detecting BusPirate...
**
**  Bus Pirate v1a
**  Firmware v3.0
**  DEVID:0x0447 REVID:0x3003 (A3)
**  http://dangerousprototypes.com
**
BusPirate: using BINARY mode
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e910a
avrdude: safemode: Fuses OK
avrdude done.  Thank you.
6
Bus Pirate Support / Re: AVRdude vs. BP is very slow
So it is way too slow in general...and switchning firmware is annoying ;(

But i have seen some log, where reading ID took about 0,02s it means five time faster then in my case. Ana author of suppor for avrdude Michal Ludvig said that his PB acts fast and without any delays...
7
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.01332341136session_write_close ( )...(null):0
20.01362472704ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01362473480Database_MySQL->query( ).../DatabaseHandler.php:119
40.05982612192Database_MySQL->error( ).../Db-mysql.class.php:273