mirror of
https://github.com/MikronMIK32/mik32-uploader.git
synced 2026-10-30 02:11:13 +03:00
preliminary copy of mcu specific files
This commit is contained in:
1 parent
d0ad0a8eae
commit
dd548641b5
3 files changed
+319
No files matched your search
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||
proc init_targets {} {
|
||||
|
||||
adapter speed 500
|
||||
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
|
||||
}
|
||||
|
||||
poll_period 200
|
||||
|
||||
init
|
||||
puts "init done"
|
||||
|
||||
Reference in new issue
Block a user