User Tools

Site Tools


software:programming:buspirate

Bus pirate v4

Flashing with mplab_ipe

  • use pickit3 to flash
  • select PIC24FJ256GB106
  • select hex file
  • erase device
  • program
  • 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 here for specific info about this.

How to connect to arduino micro

wiring

*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *

                                                           (SWITCH)

USB PORT   ARDUINO                                       (2) (4) (6)
            MICRO
                                                         (1) (3) (5)


*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *
BUSPIRATE ARDUINO MICRO
MISO MISO (1)
5V Vcc (2)
SCK CLK (3)
MOSI MOSI (4)
CS RESET (5)
GND GND (6)

The Arduino micro can be powered directly from the buspirate. No external power is necessary.

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

How to connect to arduino ATMEGA644

wiring

*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *



                ATMEGA644                                          (6) (5)

                                                                   (4) (3)

                                                                   (2) (1)

*   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *   *
BUSPIRATE ARDUINO ATMEGA644
MISO MISO (1)
5V Vcc (2)
SCK CLK (3)
MOSI MOSI (4)
CS RESET (5)
GND GND (6)

The Arduino ATMEGA644 can be powered directly from the buspirate. No external power is necessary.

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 -patmega644 -c buspirate -P /dev/ttyACM3 -Uflash:w:/tmp/arduino_build_779360/stepper_motor_control.ino.hex:i
software/programming/buspirate.txt · Last modified: 2021/01/18 03:17 by admin