Site Tools


software:programming:buspirate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:programming:buspirate [2021/01/16 18:33] – [udev rule] adminsoftware:programming:buspirate [2023/01/11 21:11] (current) admin
Line 10: Line 10:
   * done   * done
  
-==== udev rule ==== +===== udev rules ===== 
-To make it easier to address the buspirate v4 consistently (ttyACMx is not consistent)create an udev rule to have it always created as/dev/buspirate+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 arbitrarydepending 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:avr#udev_rules|here]] for specific info about this.
  
-Create one or more of the following files: 
-  sudo touch /etc/udev/rules.d/99-buspirate.rules 
- 
-(Make sure that the rule has the ending ".rules", otherwise it will not be parsed.) 
- 
-Write the following contents in this file: 
-  * buspirate\\ <code>SUBSYSTEM=="tty", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="fb00", GROUP="users", MODE="0666", SYMLINK+="buspirate"</code> 
-  * erfos avr-isp2\\ <code>SUBSYSTEM=="tty", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="2a9b", GROUP="users", MODE="0666", SYMLINK+="avrisp2"</code> 
- 
-Reload the udev rules with following command: 
-  sudo udevadm control --reload-rules 
  
  
Line 35: Line 24:
  
 USB PORT   ARDUINO                                       (2) (4) (6) USB PORT   ARDUINO                                       (2) (4) (6)
-            NANO+            MICRO
                                                          (1) (3) (5)                                                          (1) (3) (5)
  
Line 53: Line 42:
  
 ==== avrdude command ==== ==== avrdude command ====
 +
   $HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/bin/avrdude -C$HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -c buspirate -P /dev/ttyACM3 -Uflash:w:/tmp/arduino_build_779360/stepper_motor_control.ino.hex:i   $HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/bin/avrdude -C$HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/etc/avrdude.conf -v -patmega32u4 -c buspirate -P /dev/ttyACM3 -Uflash:w:/tmp/arduino_build_779360/stepper_motor_control.ino.hex:i
      
Line 82: Line 72:
 The Arduino ATMEGA644 can be powered directly from the buspirate. No external power is necessary. The Arduino ATMEGA644 can be powered directly from the buspirate. No external power is necessary.
  
-===== avrdude commands =====+===== avrdude command ===== 
 +<code bash> 
 +$HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/bin/avrdude -C$HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/etc/avrdude.conf -v -patmega644 -c buspirate -P /dev/ttyACM3 -Uflash:w:/tmp/arduino_build_779360/stepper_motor_control.ino.hex:
 +</code>
  
-==== buspirate ==== +===== avrdude reading out ATtiny1634 ===== 
-  $HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/bin/avrdude -C$HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/etc/avrdude.conf -v -patmega644 -c buspirate -P /dev/ttyACM3 -Uflash:w:/tmp/arduino_build_779360/stepper_motor_control.ino.hex:i+<code bash> 
 +avrdude -p attiny1634 -c stk500v2 e -P /dev/buspirate -u flash:r:flash.bin:r
  
-==== diamex ISP ==== +avrdude -v -pattiny1634 -c buspirate -P /dev/buspirate
-  $HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/bin/avrdude -C$HOME/Backup/apps/arduino/arduino-1.8.13/hardware/tools/avr/etc/avrdude.conf -v -patmega644 -c stk500v2 -P /dev/ttyACM3 -Uflash:w:/tmp/arduino_build_794455/stepper_motor_control.ino.hex:i+
  
 +$HOME/Backup/apps/arduino/arduino-1.8.16/hardware/tools/avr/bin/avrdude \
 +-C$HOME/Backup/apps/arduino/arduino-1.8.16/hardware/tools/avr/etc/avrdude.conf \
 +-v -pattiny1634 -c buspirate -P /dev/buspirate -u flash:r:flash.bin:r
  
 +1 p.17 PB2 (MISO)
 +2 5v   
 +3 p.14 PC1 (SCK)
 +4 p.18 PB1 (MOSI)
 +5 p.12 (Reset)
 +6 GND
 +</code>
software/programming/buspirate.1610818389.txt.gz · Last modified: 2021/01/16 18:33 by admin