mik32-uploader/openocd-scripts/target/mik32.cfg
Sergey Shchelkanov baf9f26a6d update messages
2024-02-02 18:00:38 +03:00

29 lines
586 B
INI

proc my_init_proc { } { echo "Disabling watchdog..." }
proc init_targets {} {
reset_config trst_and_srst
set _CHIPNAME riscv
set _CPUTAPID 0xdeb11001
jtag newtap $_CHIPNAME cpu -irlen 5 -ircapture 0x1 -irmask 0x1f -expected-id $_CPUTAPID
jtag newtap $_CHIPNAME sys -irlen 4 -ircapture 0x05 -irmask 0x0F -enable
set _TARGETNAME $_CHIPNAME.cpu
target create $_TARGETNAME riscv -endian little -chain-position $_TARGETNAME -coreid 0
riscv.cpu configure -event reset-init my_init_proc
}
poll_period 200
init
riscv.cpu arm semihosting enable
puts "init done"