Skip to content

Commit 7ec8229

Browse files
committed
esp32s2/esp32c3: Disable reseting target upon GDB connection
1 parent 344ce95 commit 7ec8229

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

tcl/target/esp32c3.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ $_TARGETNAME configure -event examine-end {
8585
arm semihosting_resexit enable
8686
}
8787
$_TARGETNAME configure -event gdb-attach {
88-
# 'reset' is necessary to disable memory protection which might be enabled by bootloader
8988
# 'halt' is necessary to auto-probe flash bank when GDB is connected and generate proper memory map
90-
reset halt
89+
halt
9190
# by default mask interrupts while stepping
9291
riscv maskisr steponly
9392
}

tcl/target/esp32s2.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ if { $_RTOS == "none" } {
3232
}
3333

3434
$_TARGETNAME configure -event gdb-attach {
35-
# 'reset' is necessary to disable memory protection which might be enabled by bootloader
3635
# 'halt' is necessary to auto-probe flash bank when GDB is connected and generate proper memory map
37-
reset halt
36+
halt
3837
}
3938

4039
configure_esp_workarea $_TARGETNAME 0x40030000 0x4000 0x3FFE0000 0x18000

0 commit comments

Comments
 (0)