update openocd config and flash script

This commit is contained in:
Joachim Steiger 2020-06-18 00:24:56 +02:00
parent 4cc4d8a9d7
commit 229a671db9
7 changed files with 37 additions and 34 deletions

View File

@ -0,0 +1,22 @@
# use stlink v2 clone as interface
#source [find interface/stlink.cfg]
# use versaloon as interface
source [find interface/vsllink.cfg]
#source [find interface/ftdi/jtagkey.cfg]
# use jtag-lock-pick_tiny_2
#source [find interface/ftdi/jtag-lock-pick_tiny_2.cfg]
# use hla_swd (stlink)
#transport select hla_swd
transport select swd
# samd21 target
set CHIPNAME at91samd21e18
source [find target/at91samdXX.cfg]
adapter speed 400
#adapter speed 100

View File

@ -0,0 +1,12 @@
source openocd.cfg
init
reset halt
at91samd bootloader 0
reset halt
flash erase_sector 0 0 last
program ../make/build/osmo-clkgen.bin 0 verify
at91samd bootloader 8192
reset halt
reset run
shutdown

View File

@ -0,0 +1,3 @@
#!/bin/bash
openocd -f openocd_flash_bootloader.cfg

View File

@ -1,13 +0,0 @@
# use jtag lock pick tiny 2 as interface
source [find interface/ftdi/jtag-lock-pick_tiny_2.cfg]
# use swd
transport select swd
# samd11 target
source [find target/at91samdXX.cfg]
#default init
init
targets
reset halt

View File

@ -1,13 +0,0 @@
# use versaloon as interface
source [find interface/vsllink.cfg]
# use swd
transport select swd
# samd11 target
source [find target/at91samdXX.cfg]
#default init
init
targets
reset halt

View File

@ -1,4 +0,0 @@
#!/bin/sh
openocd -f openocd.cfg -c "program ../make/build/osmo-clkgen.bin 0 verify; reset; exit"

View File

@ -1,4 +0,0 @@
#!/bin/sh
openocd -f openocd.cfg -c ""