diff options
Diffstat (limited to 'tcl/target/esp32h2.cfg')
-rw-r--r-- | tcl/target/esp32h2.cfg | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tcl/target/esp32h2.cfg b/tcl/target/esp32h2.cfg index 45f598f..b9c4f56 100644 --- a/tcl/target/esp32h2.cfg +++ b/tcl/target/esp32h2.cfg @@ -5,7 +5,7 @@ source [find target/esp_common.cfg] # Target specific global variables -set _CHIPNAME "riscv" +set _CHIPNAME "esp32h2" set _CPUTAPID 0x00010c25 set _ESP_ARCH "riscv" set _ONLYCPU 1 @@ -14,7 +14,7 @@ set _ESP_SMP_BREAK 0 set _ESP_EFUSE_MAC_ADDR_REG 0x600B0844 # Target specific functions should be implemented for each riscv chips. -proc riscv_wdt_disable { } { +proc esp32h2_wdt_disable { } { # Halt event can occur during config phase (before "init" is done). # Ignore it since mww commands don't work at that time. if { [string compare [command mode] config] == 0 } { @@ -34,7 +34,7 @@ proc riscv_wdt_disable { } { #mww 0x600b1c1c 0x84B00000 } -proc riscv_soc_reset { } { +proc esp32h2_soc_reset { } { global _RISCV_DMCONTROL _RISCV_SB_CS _RISCV_SB_ADDR0 _RISCV_SB_DATA0 riscv dmi_write $_RISCV_DMCONTROL 0x80000001 @@ -59,7 +59,7 @@ proc riscv_soc_reset { } { # Here debugger reads dmstatus as 0x3a2 # Disable the watchdogs again - riscv_wdt_disable + esp32h2_wdt_disable # Here debugger reads anyhalted and allhalted bits as set (0x3a2) # We will clean allhalted state by resuming the core. @@ -69,7 +69,7 @@ proc riscv_soc_reset { } { riscv dmi_write $_RISCV_DMCONTROL 0x80000003 } -proc riscv_memprot_is_enabled { } { +proc esp32h2_memprot_is_enabled { } { global _RISCV_ABS_CMD _RISCV_ABS_DATA0 # If IRAM/DRAM split is enabled, PMPADDR 5-6 will cover valid IRAM region and PMPADDR 7 will cover valid DRAM region # Only TOR mode is used for IRAM and DRAM protections. |