Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
bootloader:openocd [2021/01/30 17:23]
admin [OpenOCD with the Raspberry Pi]
bootloader:openocd [2021/01/30 17:33]
admin
Line 1: Line 1:
-====== OpenOCD with the Raspberry Pi ======+====== OpenOCD Raspberry Pi ======
  
 {{:bootloader:swd-raspi_programmer_seeeduinoxiao.jpg?400|}}\\ {{:bootloader:swd-raspi_programmer_seeeduinoxiao.jpg?400|}}\\
  
-Following the manual by [[https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi/overview|Lady Ada]].\\+On a Raspberry Pi following the openOCD manual by [[https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi/overview|Lady Ada]].
  
 +Install:
   $ sudo apt-get install git autoconf libtool make pkg-config libusb-1.0-0 libusb-1.0-0-dev htop   $ sudo apt-get install git autoconf libtool make pkg-config libusb-1.0-0 libusb-1.0-0-dev htop
 +Git clone:
   $ git clone http://openocd.zylin.com/openocd   $ git clone http://openocd.zylin.com/openocd
   $ cd openocd/   $ cd openocd/
 +Configure & Install:
   $ ./bootstrap    $ ./bootstrap 
   $ ./configure --enable-sysfsgpio --enable-bcm2835gpio   $ ./configure --enable-sysfsgpio --enable-bcm2835gpio
   $ make   $ make
   $ sudo make install   $ sudo make install
 +Check  Interfaces:
   $ cd /usr/local/share/openocd/scripts/interface/   $ cd /usr/local/share/openocd/scripts/interface/
   $ ls   $ ls
 +New Folder:
   $ cd ~   $ cd ~
   $ mkdir bootloader   $ mkdir bootloader
   $ cd bootloader   $ cd bootloader
-Download the needed bootloaders+Download the Bootloader:
   $ wget https://github.com/arduino/ArduinoCore-samd/raw/master/bootloaders/zero/samd21_sam_ba.bin   $ wget https://github.com/arduino/ArduinoCore-samd/raw/master/bootloaders/zero/samd21_sam_ba.bin
   $ wget https://github.com/Seeed-Studio/ArduinoCore-samd/blob/master/bootloaders/XIAOM0/bootloader-XIAO_m0-v3.7.0-33-g90ff611-dirty.bin   $ wget https://github.com/Seeed-Studio/ArduinoCore-samd/blob/master/bootloaders/XIAOM0/bootloader-XIAO_m0-v3.7.0-33-g90ff611-dirty.bin
   $ wget "https://github.com/arduino/ArduinoCore-samd/blob/master/bootloaders/mkrzero/samd21_sam_ba_arduino_mkrzero.hex"   $ wget "https://github.com/arduino/ArduinoCore-samd/blob/master/bootloaders/mkrzero/samd21_sam_ba_arduino_mkrzero.hex"
 +Make your Config File:
 +  $ nano openocd.cfg
 +Add:
  
-  $ nano openocd.cfg 
   $ sudo openocd -f openocd.cfg   $ sudo openocd -f openocd.cfg
 +If needed change the Raspberry Pi interface file:
   $ sudo nano /usr/local/share/openocd/scripts/interface/raspberrypi2-native.cfg   $ sudo nano /usr/local/share/openocd/scripts/interface/raspberrypi2-native.cfg
 +  $ sudo nano /usr/local/share/openocd/scripts/interface/raspberrypi3-native.cfg
  
 ---- ----
 ==== HEX files ===== ==== HEX files =====
  
-- [[https://github.com/arduino/ArduinoCore-samd|Arduino Code]]\\+- [[https://github.com/arduino/ArduinoCore-samd|Arduino]]\\ 
 +- [[https://github.com/arduino/ArduinoCore-samd/raw/master/bootloaders/zero/samd21_sam_ba.bin|SAMD21 M0-Mini]]\\ 
 +- [[https://github.com/Seeed-Studio/ArduinoCore-samd/blob/master/bootloaders/XIAOM0/bootloader-XIAO_m0-v3.7.0-33-g90ff611-dirty.bin|Seeeduino XIAO]]\\
  
 ---- ----