hpm5e00.cfg 490 B

123456789101112131415161718
  1. # Copyright (c) 2024 HPMicro
  2. # SPDX-License-Identifier: BSD-3-Clause
  3. set _CHIP hpm5e00
  4. set _CPUTAPID 0x1000563D
  5. jtag newtap $_CHIP cpu -irlen 5 -expected-id $_CPUTAPID
  6. set _TARGET0 $_CHIP.cpu0
  7. target create $_TARGET0 riscv -chain-position $_CHIP.cpu -coreid 0
  8. $_TARGET0 configure -work-area-phys 0x00000000 -work-area-size 0x20000 -work-area-backup 0
  9. targets $_TARGET0
  10. proc reset_soc {} {
  11. $::_TARGET0 riscv dmi_write 0x39 0xF410001C
  12. $::_TARGET0 riscv dmi_write 0x3C 24000000
  13. }