-
Notifications
You must be signed in to change notification settings - Fork 0
/
openocd.cfg
28 lines (22 loc) · 678 Bytes
/
openocd.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
source /home/pi/openocd/tcl/interface/raspberrypi2-native.cfg
transport select swd
set CHIPNAME at91samd21g18
source /home/pi/openocd/tcl/target/at91samdXX.cfg
#did not yet manage to make a working setup using srst
#reset_config srst_only
reset_config srst_nogate
adapter_nsrst_delay 300
adapter_nsrst_assert_width 300
bcm2835gpio_swd_nums 25 24
bcm2835gpio_trst_num 7
bcm2835gpio_srst_num 18
init
targets
reset halt
at91samd bootloader 0
at91samd chip-erase
program samd21_2020.bin verify
at91samd bootloader 8192
#at91samd nvmuserrow > print de nvmuserrow, schrijven is nvmuserrow 0xFFFFFC5DD8E0C772 (in working condition: the last 2 is bootloader size)
reset
shutdown