This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:programming:buspirate [2021/01/13 02:10] – [Bus pirate v4] admin | software:programming:buspirate [2023/01/11 21:11] (current) – admin | ||
---|---|---|---|
Line 9: | Line 9: | ||
* program | * program | ||
* done | * done | ||
+ | |||
+ | ===== udev rules ===== | ||
+ | For practical reasons, it is recommended to use udev rules to make sure always the same device appears if it is connected to the pc. Without the udev rules, the allocation is more or less arbitrary, depending on the availability of that device in the device tree. This will make it possible to create fixed entries in the arduino ide which will always address the same device. See [[software: | ||
+ | |||
+ | |||
+ | |||
===== How to connect to arduino micro ===== | ===== How to connect to arduino micro ===== | ||
Line 18: | Line 24: | ||
USB PORT | USB PORT | ||
- | | + | |
(1) (3) (5) | (1) (3) (5) | ||
Line 30: | Line 36: | ||
| SCK | CLK (3) | | | SCK | CLK (3) | | ||
| MOSI | MOSI (4) | | | MOSI | MOSI (4) | | ||
- | | RESET | + | | CS |
| GND | GND (6) | | | GND | GND (6) | | ||
Line 36: | Line 42: | ||
==== avrdude command ==== | ==== avrdude command ==== | ||
+ | |||
HOME/Backup/apps/arduino/arduino−1.8.13/hardware/tools/avr/bin/avrdude−CHOME/ | HOME/Backup/apps/arduino/arduino−1.8.13/hardware/tools/avr/bin/avrdude−CHOME/ | ||
+ | | ||
+ | ===== How to connect to arduino ATMEGA644 ===== | ||
+ | |||
+ | ==== wiring ==== | ||
+ | < | ||
+ | * | ||
+ | |||
+ | |||
+ | |||
+ | ATMEGA644 | ||
+ | |||
+ | (4) (3) | ||
+ | |||
+ | (2) (1) | ||
+ | |||
+ | * | ||
+ | </ | ||
+ | |||
+ | ^ BUSPIRATE | ||
+ | | MISO | MISO (1) | | ||
+ | | 5V | Vcc (2) | | ||
+ | | SCK | CLK (3) | | ||
+ | | MOSI | MOSI (4) | | ||
+ | | CS | RESET | ||
+ | | GND | GND (6) | | ||
+ | |||
+ | The Arduino ATMEGA644 can be powered directly from the buspirate. No external power is necessary. | ||
+ | |||
+ | ===== avrdude command ===== | ||
+ | <code bash> | ||
+ | HOME/Backup/apps/arduino/arduino−1.8.13/hardware/tools/avr/bin/avrdude−CHOME/ | ||
+ | </ | ||
+ | |||
+ | ===== avrdude reading out ATtiny1634 ===== | ||
+ | <code bash> | ||
+ | # avrdude -p attiny1634 -c stk500v2 e -P / | ||
+ | |||
+ | avrdude -v -pattiny1634 -c buspirate -P / | ||
+ | |||
+ | $HOME/ | ||
+ | -C$HOME/ | ||
+ | -v -pattiny1634 -c buspirate -P / | ||
+ | |||
+ | 1 p.17 PB2 (MISO) | ||
+ | 2 5v | ||
+ | 3 p.14 PC1 (SCK) | ||
+ | 4 p.18 PB1 (MOSI) | ||
+ | 5 p.12 (Reset) | ||
+ | 6 GND | ||
+ | </ |