mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-24 05:39:27 +00:00
[chore] update iopenocd cfg in openocd 0.1
This commit is contained in:
parent
838c1881c4
commit
702cc58016
3 changed files with 106 additions and 111 deletions
|
@ -1,21 +1,16 @@
|
|||
# BouffaloLab USB-JTAG/TTL adapter
|
||||
interface ftdi
|
||||
#adapter driver ftdi
|
||||
ftdi_vid_pid 0x0403 0x6010
|
||||
|
||||
ftdi_channel 0
|
||||
#ftdi_tdo_sample_edge falling
|
||||
transport select jtag
|
||||
adapter_khz 5000
|
||||
#adapter speed 1000
|
||||
|
||||
ftdi_layout_init 0x00f8 0x00fb
|
||||
#ftdi_layout_signal nTRST -data 0x0400
|
||||
#ftdi_layout_signal nSRST -ndata 0x0020
|
||||
|
||||
#reset_config srst_only srst_push_pull
|
||||
#adapter_nsrst_delay 100
|
||||
#adapter_nsrst_assert_width 100
|
||||
|
||||
#bindto 0.0.0.0
|
||||
|
||||
# BouffaloLab USB-JTAG/TTL adapter
|
||||
adapter driver ftdi
|
||||
ftdi_vid_pid 0x0403 0x6010
|
||||
|
||||
ftdi_channel 0
|
||||
#ftdi_tdo_sample_edge falling
|
||||
transport select jtag
|
||||
adapter speed 4000
|
||||
|
||||
ftdi_layout_init 0x00f8 0x00fb
|
||||
#ftdi_layout_signal nTRST -data 0x0400
|
||||
#ftdi_layout_signal nSRST -ndata 0x0020
|
||||
|
||||
#reset_config srst_only srst_push_pull
|
||||
#adapter_nsrst_delay 100
|
||||
#adapter_nsrst_assert_width 100
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
#target chip
|
||||
|
||||
set _CHIPNAME riscv
|
||||
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000c05
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
|
||||
$_TARGETNAME.0 configure -work-area-phys 0x22020000 -work-area-size 0x10000 -work-area-backup 1
|
||||
#$_TARGETNAME.0 configure -rtos auto
|
||||
|
||||
echo "Ready for Remote Connections"
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-assert-pre {
|
||||
echo "reset-assert-pre"
|
||||
adapter_khz 100
|
||||
}
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-deassert-post {
|
||||
echo "reset-deassert-post"
|
||||
adapter_khz 4000
|
||||
reg mstatus 0x7800
|
||||
reg mie 0x0
|
||||
# reg pc 0x22008000
|
||||
}
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-init {
|
||||
echo "reset-init"
|
||||
# 4MHz for FPGA
|
||||
adapter_khz 4000
|
||||
}
|
||||
|
||||
gdb_memory_map enable
|
||||
gdb_flash_program disable
|
||||
|
||||
riscv set_prefer_sba on
|
||||
riscv set_command_timeout_sec 1
|
||||
|
||||
init
|
||||
reset init
|
||||
|
||||
#jtag arp_init
|
||||
|
||||
#resume
|
||||
#exit
|
||||
|
||||
#target chip
|
||||
|
||||
set _CHIPNAME riscv
|
||||
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000c05
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
|
||||
$_TARGETNAME.0 configure -work-area-phys 0x22020000 -work-area-size 0x10000 -work-area-backup 1
|
||||
#$_TARGETNAME.0 configure -rtos auto
|
||||
|
||||
echo "Ready for Remote Connections"
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-assert-pre {
|
||||
echo "reset-assert-pre"
|
||||
adapter speed 100
|
||||
}
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-deassert-post {
|
||||
echo "reset-deassert-post"
|
||||
adapter speed 4000
|
||||
reg mstatus 0x7800
|
||||
reg mie 0x0
|
||||
# reg pc 0x22008000
|
||||
}
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-init {
|
||||
echo "reset-init"
|
||||
# 4MHz for FPGA
|
||||
adapter speed 4000
|
||||
}
|
||||
|
||||
gdb_memory_map enable
|
||||
gdb_flash_program disable
|
||||
|
||||
riscv set_prefer_sba on
|
||||
riscv set_command_timeout_sec 1
|
||||
|
||||
init
|
||||
reset init
|
||||
|
||||
#jtag arp_init
|
||||
|
||||
#resume
|
||||
#exit
|
||||
|
||||
|
|
|
@ -1,45 +1,45 @@
|
|||
#target chip
|
||||
|
||||
set _CHIPNAME riscv
|
||||
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000e05
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
|
||||
$_TARGETNAME.0 configure -work-area-phys 0x22020000 -work-area-size 0x10000 -work-area-backup 1
|
||||
#$_TARGETNAME.0 configure -rtos auto
|
||||
|
||||
echo "Ready for Remote Connections"
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-assert-pre {
|
||||
echo "reset-assert-pre"
|
||||
adapter_khz 5000
|
||||
}
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-deassert-post {
|
||||
echo "reset-deassert-post"
|
||||
adapter_khz 5000
|
||||
reg mstatus 0x7800
|
||||
reg mie 0x0
|
||||
# reg pc 0x22008000
|
||||
}
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-init {
|
||||
echo "reset-init"
|
||||
# 4MHz for FPGA
|
||||
adapter_khz 5000
|
||||
}
|
||||
|
||||
gdb_memory_map enable
|
||||
gdb_flash_program disable
|
||||
|
||||
riscv set_prefer_sba on
|
||||
riscv set_command_timeout_sec 1
|
||||
|
||||
init
|
||||
reset init
|
||||
|
||||
#jtag arp_init
|
||||
|
||||
#resume
|
||||
#exit
|
||||
|
||||
#target chip
|
||||
|
||||
set _CHIPNAME riscv
|
||||
jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x20000e05
|
||||
|
||||
set _TARGETNAME $_CHIPNAME.cpu
|
||||
target create $_TARGETNAME.0 riscv -chain-position $_TARGETNAME
|
||||
$_TARGETNAME.0 configure -work-area-phys 0x22020000 -work-area-size 0x10000 -work-area-backup 1
|
||||
#$_TARGETNAME.0 configure -rtos auto
|
||||
|
||||
echo "Ready for Remote Connections"
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-assert-pre {
|
||||
echo "reset-assert-pre"
|
||||
adapter speed 100
|
||||
}
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-deassert-post {
|
||||
echo "reset-deassert-post"
|
||||
adapter speed 4000
|
||||
reg mstatus 0x7800
|
||||
reg mie 0x0
|
||||
# reg pc 0x22008000
|
||||
}
|
||||
|
||||
$_TARGETNAME.0 configure -event reset-init {
|
||||
echo "reset-init"
|
||||
# 4MHz for FPGA
|
||||
adapter speed 4000
|
||||
}
|
||||
|
||||
gdb_memory_map enable
|
||||
gdb_flash_program disable
|
||||
|
||||
riscv set_prefer_sba on
|
||||
riscv set_command_timeout_sec 1
|
||||
|
||||
init
|
||||
reset init
|
||||
|
||||
#jtag arp_init
|
||||
|
||||
#resume
|
||||
#exit
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue