forked from auracaster/openocd
tcl: add config file for hpmicro devices and boards
- add board and device config files - add interface config file for hpmicro evk boards Change-Id: I8afb0b734b1064d71c4af3c118c7777d0ead9e6b Signed-off-by: Ryan QIAN <jianghao.qian@hpmicro.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8697 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
24
tcl/target/hpmicro/hpm5300.cfg
Normal file
24
tcl/target/hpmicro/hpm5300.cfg
Normal file
@@ -0,0 +1,24 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright (c) 2021 HPMicro
|
||||
#
|
||||
# datasheet: https://www.hpmicro.com/Public/Uploads/uploadfile/files/20251126/HPM5300DSV012.pdf
|
||||
|
||||
if { [info exists CHIPNAME] } {
|
||||
set _CHIP $CHIPNAME
|
||||
} else {
|
||||
set _CHIP hpm5361
|
||||
}
|
||||
set _CPUTAPID 0x1000563D
|
||||
jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID
|
||||
|
||||
set _TARGET0 $_CHIP.cpu0
|
||||
target create $_TARGET0 riscv -chain-position $_CHIP.cpu -coreid 0
|
||||
|
||||
$_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0
|
||||
|
||||
source [find target/hpmicro/hpm_common.cfg]
|
||||
source [find target/hpmicro/hpm_common_csr_lite.cfg]
|
||||
|
||||
proc reset_soc {} {
|
||||
sba_write_mem 0xF410001C 24000000
|
||||
}
|
||||
Reference in New Issue
Block a user