Differences
This shows you the differences between two versions of the page.
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:// | $ wget https:// | ||
$ wget https:// | $ wget https:// | ||
- | $ wget " | + | $ wget " |
Make your Config File: | Make your Config File: | ||
$ nano openocd.cfg | $ nano openocd.cfg | ||
Add: | Add: | ||
+ | source [find interface/ | ||
+ | transport select swd | ||
+ | |||
+ | set CHIPNAME at91samd21g18 | ||
+ | source [find target/ | ||
+ | |||
+ | # did not yet manage to make a working setup using srst | ||
+ | # | ||
+ | reset_config srst_nogate | ||
+ | |||
+ | adapter srst delay 100 | ||
+ | adapter srst pulse_width 100 | ||
+ | |||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | 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: |