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
Last revision Both sides next revision
bootloader:openocd [2021/01/30 17:41]
admin [Acknowledge & Links]
bootloader:openocd [2021/01/30 17:57]
admin
Line 3: Line 3:
 {{:bootloader:swd-raspi_programmer_seeeduinoxiao.jpg?400|}}\\ {{:bootloader:swd-raspi_programmer_seeeduinoxiao.jpg?400|}}\\
  
-On a Raspberry Pi following the openOCD manual by [[https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi/overview|Lady Ada]].+To install the [[http://openocd.org/|open On-Chip Debugger]] on a Raspberry Pi following the manual by [[https://learn.adafruit.com/programming-microcontrollers-using-openocd-on-raspberry-pi/overview|Lady Ada]].
  
 Install: Install:
Line 65: Line 65:
   $ 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   $ sudo nano /usr/local/share/openocd/scripts/interface/raspberrypi3-native.cfg
 +Change:
 +  # Each of the SWD lines need a gpio number set: swclk swdio
 +  # Header pin numbers: 23 22
 +  bcm2835gpio_swd_nums 25 24
 +
 +  # If you define trst or srst, use appropriate reset_config
 +  # Header pin numbers: TRST - 26, SRST - 18
 +  bcm2835gpio_trst_num 7
 +  bcm2835gpio_srst_num 18
  
 ---- ----
-==== HEX files =====+==== Bootloader =====
  
 - [[https://github.com/arduino/ArduinoCore-samd|Arduino]]\\ - [[https://github.com/arduino/ArduinoCore-samd|Arduino]]\\
Line 75: Line 84:
 ---- ----
 ==== Pinout ==== ==== Pinout ====
 +
 +  SWD         Raspberry Pi
 +  
 +   Reset       GPIO 18
 +   SWDIO       GPIO 24
 +   SWCLK       GPIO 25
  
 **Arduino MKR ZERO**\\ **Arduino MKR ZERO**\\