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 Both sides next revision
bootloader:openocd [2021/01/30 17:33]
admin
bootloader:openocd [2021/01/30 17:39]
admin [OpenOCD & Raspberry Pi]
Line 25: Line 25:
   $ 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.bin"
 Make your Config File: Make your Config File:
   $ nano openocd.cfg   $ nano openocd.cfg
 Add: Add:
 +  source [find interface/raspberrypi3-native.cfg] 
 +  transport select swd 
 +   
 +  set CHIPNAME at91samd21g18 
 +  source [find target/at91samdXX.cfg] 
 +   
 +  # did not yet manage to make a working setup using srst 
 +  #reset_config srst_only 
 +  reset_config srst_nogate 
 +   
 +  adapter srst delay 100 
 +  adapter srst pulse_width 100 
 +   
 +  #bcm2835gpio_swd_nums 25 24 
 +  #bcm2835gpio_trst_num 7 
 +  #bcm2835gpio_srst_num 18 
 +   
 +  init 
 +  targets 
 +  reset halt 
 +   
 +  #at91samd chip-erase 
 +  #at91samd restore 
 +  at91samd bootloader 0 
 +  program samd21_sam_ba.bin verify 
 +  #program bootloader-XIAO_m0-v3.7.0-33-g90ff611-dirty.bin verify 
 +  #flash write_image unlock bootloader-XIAO_m0-v3.7.0-33-g90ff611-dirty.bin 
 +  at91samd bootloader 8192 
 +   
 +  reset 
 +  shutdown 
 +... and run it
   $ sudo openocd -f openocd.cfg   $ sudo openocd -f openocd.cfg
 If needed change the Raspberry Pi interface file: If needed change the Raspberry Pi interface file: