31 lines
631 B
INI
31 lines
631 B
INI
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
#
|
|
# The ESP32-S2 only supports JTAG.
|
|
transport select jtag
|
|
|
|
if { [info exists CHIPNAME] } {
|
|
set _CHIPNAME $CHIPNAME
|
|
} else {
|
|
set _CHIPNAME esp32s2
|
|
}
|
|
|
|
if { [info exists CPUTAPID] } {
|
|
set _CPUTAPID $CPUTAPID
|
|
} else {
|
|
set _CPUTAPID 0x120034e5
|
|
}
|
|
|
|
set _TARGETNAME $_CHIPNAME
|
|
set _CPUNAME cpu
|
|
set _TAPNAME $_CHIPNAME.$_CPUNAME
|
|
|
|
jtag newtap $_CHIPNAME $_CPUNAME -irlen 5 -expected-id $_CPUTAPID
|
|
|
|
target create $_TARGETNAME esp32s2 -endian little -chain-position $_TAPNAME
|
|
|
|
xtensa maskisr on
|
|
|
|
$_TARGETNAME configure -event reset-assert-post { soft_reset_halt }
|
|
|
|
gdb_breakpoint_override hard
|