> Mit welchen Kommandozeilenargumenten rufst du openocd auf?
Ich nutze die Arduino IDE.
Dort sieht das ganze so aus:
1 | packages/WCH/tools/openocd/1.0.0/bin/openocd -f /home/christoph/.arduino15/packages/WCH/tools/openocd/1.0.0/bin/wch-riscv.cfg -c init -c halt -c program {/tmp/arduino_build_205312/nix2.ino.elf} verify; wlink_reset_resume; exit;
|
und wch-riscvcfg:
1 |
|
2 | #interface wlink
|
3 | adapter driver wlinke
|
4 | adapter speed 6000
|
5 | transport select sdi
|
6 |
|
7 | wlink_set_address 0x00000000
|
8 | set _CHIPNAME wch_riscv
|
9 | sdi newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x00001
|
10 |
|
11 | set _TARGETNAME $_CHIPNAME.cpu
|
12 |
|
13 | target create $_TARGETNAME.0 wch_riscv -chain-position $_TARGETNAME
|
14 | $_TARGETNAME.0 configure -work-area-phys 0x20000000 -work-area-size 10000 -work-area-backup 1
|
15 | set _FLASHNAME $_CHIPNAME.flash
|
16 |
|
17 | flash bank $_FLASHNAME wch_riscv 0x00000000 0 0 0 $_TARGETNAME.0
|
18 |
|
19 | echo "Ready for Remote Connections"
|
Gibt es eine Möglichkeit, die Verbindung über openocd schrittweise,
manuell zu testen?