update openocd config and flash script
This commit is contained in:
parent
4cc4d8a9d7
commit
229a671db9
|
@ -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
|
|
@ -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
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
openocd -f openocd_flash_bootloader.cfg
|
|
@ -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
|
|
|
@ -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
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
openocd -f openocd.cfg -c "program ../make/build/osmo-clkgen.bin 0 verify; reset; exit"
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
openocd -f openocd.cfg -c ""
|
|
||||||
|
|
Loading…
Reference in New Issue