Skip to content

Commit 8245586

Browse files
committed
Fixing flash
1 parent 7fc5933 commit 8245586

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

openocd.log

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
adapter_nsrst_assert_width: 100
22

3-
1
3+
0
44
debug_level: 2
55

66
Info : Listening on port 6666 for tcl connections
@@ -15,8 +15,12 @@ Info : clock speed 1000 kHz
1515
Info : cmsis-dap JTAG TLR_RESET
1616
Info : cmsis-dap JTAG TLR_RESET
1717
Info : JTAG tap: riscv.cpu tap/device found: 0x1e200a6d (mfg: 0x536 (Nuclei System Technology Co.,Ltd.), part: 0xe200, ver: 0x1)
18+
Warn : JTAG tap: riscv.cpu UNEXPECTED: 0x1e200a6d (mfg: 0x536 (Nuclei System Technology Co.,Ltd.), part: 0xe200, ver: 0x1)
19+
Error: JTAG tap: riscv.cpu expected 1 of 1: 0x1000563d (mfg: 0x31e (Andes Technology Corporation), part: 0x0005, ver: 0x1)
1820
Info : JTAG tap: auto0.tap tap/device found: 0x790007a3 (mfg: 0x3d1 (GigaDevice Semiconductor (Beijing)), part: 0x9000, ver: 0x7)
21+
Error: Trying to use configured scan chain anyway...
1922
Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 5 -expected-id 0x790007a3"
23+
Warn : Bypassing JTAG setup events due to errors
2024
Info : datacount=4 progbufsize=2
2125
Info : Examined RISC-V core; found 1 harts
2226
Info : hart 0: XLEN=32, misa=0x40901105
@@ -25,5 +29,9 @@ Info : cmsis-dap JTAG TLR_RESET
2529
Info : cmsis-dap JTAG TLR_RESET
2630
Info : cmsis-dap JTAG TLR_RESET
2731
Info : JTAG tap: riscv.cpu tap/device found: 0x1e200a6d (mfg: 0x536 (Nuclei System Technology Co.,Ltd.), part: 0xe200, ver: 0x1)
32+
Warn : JTAG tap: riscv.cpu UNEXPECTED: 0x1e200a6d (mfg: 0x536 (Nuclei System Technology Co.,Ltd.), part: 0xe200, ver: 0x1)
33+
Error: JTAG tap: riscv.cpu expected 1 of 1: 0x1000563d (mfg: 0x31e (Andes Technology Corporation), part: 0x0005, ver: 0x1)
2834
Info : JTAG tap: auto0.tap tap/device found: 0x790007a3 (mfg: 0x3d1 (GigaDevice Semiconductor (Beijing)), part: 0x9000, ver: 0x7)
35+
Error: Trying to use configured scan chain anyway...
36+
Warn : Bypassing JTAG setup events due to errors
2937
Info : dropped 'gdb' connection

scripts/gd32vf103/test.ocd

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
debug_level 4
1+
debug_level 3
22

33
adapter_khz 1000
44
reset_config srst_only
@@ -11,7 +11,8 @@ transport select jtag
1111
#autoexit true
1212

1313
set _CHIPNAME riscv
14-
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1000563d
14+
#jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1000563d
15+
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1e200a6d
1516

1617
set _TARGETNAME $_CHIPNAME.cpu
1718
target create $_TARGETNAME riscv -chain-position $_TARGETNAME
@@ -37,9 +38,10 @@ set _FLASHNAME $_CHIPNAME.flash
3738

3839
flash bank bin/targets/gd32vf103c-start_boot/app/apps/boot_stub/boot_stub.elf.bin gd32vf103 0x08000000 0 0 0 $_TARGETNAME
3940

40-
#riscv expose_csrs 3040-3071
41+
riscv set_reset_timeout_sec 1
42+
# riscv expose_csrs 3040-3071
4143

42-
#init
44+
init
4345

4446
#halt
4547
# We must turn on this because otherwise the IDE version debug cannot download the program into flash

0 commit comments

Comments
 (0)