1
AVRDude / Help getting started OS X
"I'm an artist, not a programmer, Jim!"
Open Source Hardware
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.
Have you tried flipping AUX? !AUX would mean that it is hold when grounded I think, hold is active low like CS.
You can try swapping the bitorder with the command 'l' or 'L' (dunno i'm on a mobile fone atm)so I set the BP up with the "l" command, which is MSB first, after first selecting Normal mode and not using pullups, as Ian contends they are not needed.
Bus Pirate v3.aNow, the results of the READ commands are not exactly what are shown in the tutorial, but they do seem almost credible!
Firmware v6.1 r1676 Bootloader v4.1
DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
http://dangerousprototypes.com
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)
(1)>5
Set speed:
1. 30KHz
2. 125KHz
3. 250KHz
4. 1MHz
(1)>
Clock polarity:
1. Idle low *default
2. Idle high
(1)>
Output clock edge:
1. Idle to active
2. Active to idle *default
(2)>
Input sample phase:
1. Middle *default
2. End
(1)>
CS:
1. CS
2. /CS *default
(2)>
Select output type:
1. Open drain (H=Hi-Z, L=GND)
2. Normal (H=3.3V, L=GND)
(1)>2
Ready
SPI>W
POWER SUPPLIES ON
SPI>l
MSB set: MOST sig bit first
SPI>[0x01 0b01000001]
/CS ENABLED
WRITE: 0x01
WRITE: 0x41
/CS DISABLED
SPI>[5 r]
/CS ENABLED
WRITE: 0x05
READ: 0x42
/CS DISABLED
SPI>[0x02 0 0 5 6 7 8 9 10 11 12 13]
/CS ENABLED
WRITE: 0x02
WRITE: 0x00
WRITE: 0x00
WRITE: 0x05
WRITE: 0x06
WRITE: 0x07
WRITE: 0x08
WRITE: 0x09
WRITE: 0x0A
WRITE: 0x0B
WRITE: 0x0C
WRITE: 0x0D
/CS DISABLED
SPI>[0x03 0 0 r:9]
/CS ENABLED
WRITE: 0x03
WRITE: 0x00
WRITE: 0x00
READ: 0x06 0x18 0x38 0x81 0x46 0x1C 0x60 0xFF 0xFF
/CS DISABLED
SPI>[0x03 0 0 r:9][0x03 0 0 r:9]
/CS ENABLED
WRITE: 0x03
WRITE: 0x00
WRITE: 0x00
READ: 0x06 0x18 0x38 0x81 0x46 0x1C 0x60 0xFF 0xFF
/CS DISABLED
SPI>i
Bus Pirate v3.a
Firmware v6.1 r1676 Bootloader v4.1
DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
http://dangerousprototypes.com
CFG1:0xF9DF CFG2:0x3F7F
*----------*
Pinstates:
1.(BR) 2.(RD) 3.(OR) 4.(YW) 5.(GN) 6.(BL) 7.(PU) 8.(GR) 9.(WT) 0.(Blk)
GND 3.3V 5.0V ADC VPU AUX CLK MOSI CS MISO
P P P I I I O O O I
GND 3.28V 4.92V 0.00V 3.27V L L H H L
POWER SUPPLIES ON, Pull-up resistors OFF, Normal outputs (H=3.3v, L=GND)
MSB set: MOST sig bit first, Number of bits read/write: 8
a/A/@ controls AUX pin
SPI (spd ckp ske smp csl hiz)=( 1 0 1 0 1 0 )
*----------*
SPI>
HiZ>mWhat's interesting to me is the fact that if I use the "A" command to set AUX HIGH, the result of the [5 r] command is "WRITE: 0x05 READ: 0x84" when before (setting AUX low), it was "WRITE: 0x05 READ: 0xFF". I know that close only counts in horseshoes, but I'm wondering if this is progress?
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)
(1)>5
Set speed:
1. 30KHz
2. 125KHz
3. 250KHz
4. 1MHz
(1)>
Clock polarity:
1. Idle low *default
2. Idle high
(1)>
Output clock edge:
1. Idle to active
2. Active to idle *default
(2)>
Input sample phase:
1. Middle *default
2. End
(1)>
CS:
1. CS
2. /CS *default
(2)>
Select output type:
1. Open drain (H=Hi-Z, L=GND)
2. Normal (H=3.3V, L=GND)
(1)>
Ready
SPI>W
POWER SUPPLIES ON
SPI>P
Pull-up resistors ON
SPI>A
AUX HIGH
SPI>]
/CS DISABLED
SPI>[0x01 0b01000001]
/CS ENABLED
WRITE: 0x01
WRITE: 0x41
/CS DISABLED
SPI>[5 r]
/CS ENABLED
WRITE: 0x05
READ: 0x84
/CS DISABLED
SPI>i
Bus Pirate v3.a
Firmware v6.1 r1676 Bootloader v4.1
DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
http://dangerousprototypes.com
CFG1:0xF9DF CFG2:0x3F7F
*----------*
Pinstates:
1.(BR) 2.(RD) 3.(OR) 4.(YW) 5.(GN) 6.(BL) 7.(PU) 8.(GR) 9.(WT) 0.(Blk)
GND 3.3V 5.0V ADC VPU AUX CLK MOSI CS MISO
P P P I I O O O O I
GND 3.28V 4.92V 0.00V 3.27V H L H H H
POWER SUPPLIES ON, Pull-up resistors ON, Open drain outputs (H=Hi-Z, L=GND)
MSB set: MOST sig bit first, Number of bits read/write: 8
a/A/@ controls AUX pin
SPI (spd ckp ske smp csl hiz)=( 1 0 1 0 1 1 )
*----------*
Bus Pirate v3.a
Firmware v6.1 r1676 Bootloader v4.1
DEVID:0x0447 REVID:0x3043 (24FJ64GA002 B5)
http://dangerousprototypes.com
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. 2WIRE
7. 3WIRE
8. LCD
x. exit(without change)
(1)>5
Set speed:
1. 30KHz
2. 125KHz
3. 250KHz
4. 1MHz
(1)>1
Clock polarity:
1. Idle low *default
2. Idle high
(1)>
Output clock edge:
1. Idle to active
2. Active to idle *default
(2)>
Input sample phase:
1. Middle *default
2. End
(1)>
CS:
1. CS
2. /CS *default
(2)>
Select output type:
1. Open drain (H=Hi-Z, L=GND)
2. Normal (H=3.3V, L=GND)
(1)>2
Ready
SPI>W
POWER SUPPLIES ON
SPI>a
AUX LOW
SPI>[0x01 0b01000001]
/CS ENABLED
WRITE: 0x01
WRITE: 0x41
/CS DISABLED
SPI>[5 r]
/CS ENABLED
WRITE: 0x05
READ: 0x00
/CS DISABLED
SPI>
Instead of running bootloader from the terminal, can you short PGC and PGD pins? Also I prefer pirate-loader, can you give it a go too?Well, that was disappointing... I shorted the PCG and PGD pins, and the MODE indicator lights, but when I try to run pirate-loader, a terminal screen flashes for a split second and then disappears. The thought has just occurred to me that I may need python to run this... maybe?
Bus Pirate v3Surely there must be some simple thing that I'm missing...?
Firmware v4.1 Bootloader v4.1
DEVID:0x0447 REVID:0x3043 (B5)
http://dangerousprototypes.com
HiZ>m
1. HiZ
2. 1-WIRE
3. UART
4. I2C
5. SPI
6. JTAG
7. RAW2WIRE
8. RAW3WIRE
9. PC KEYBOARD
10. LCD
(1) >5
Mode selected
Set speed:
1. 30KHz
2. 125KHz
3. 250KHz
4. 1MHz
(1) >4
Clock polarity:
1. Idle low *default
2. Idle high
(1) >
Output clock edge:
1. Idle to active
2. Active to idle *default
(2) >
Input sample phase:
1. Middle *default
2. End
(1) >
Select output type:
1. Open drain (H=Hi-Z, L=GND)
2. Normal (H=3.3V, L=GND)
(1) >
READY
SPI>
* Syntax error, type ? for help
SPI>[0x01 0b01000001]
CS ENABLED
WRITE: 0x01
WRITE: 0x41
CS DISABLED
SPI>[5 r]
CS ENABLED
WRITE: 0x05
READ: 0x00
CS DISABLED
SPI>[0x02 0 0 5 6 7 8 9 10 11 12 13]
CS ENABLED
WRITE: 0x02
WRITE: 0x00
WRITE: 0x00
WRITE: 0x05
WRITE: 0x06
WRITE: 0x07
WRITE: 0x08
WRITE: 0x09
WRITE: 0x0A
WRITE: 0x0B
WRITE: 0x0C
WRITE: 0x0D
CS DISABLED
SPI>[0x03 0 0 r:9]
CS ENABLED
WRITE: 0x03
WRITE: 0x00
WRITE: 0x00
READ 0x09 BYTES:
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
CS DISABLED
SPI>