Skip to content

Commit 49d9086

Browse files
projectgusigrr
authored andcommitted
esp108: Fix setting ESP32_ONLYCPU 3 for two targets (1 per core)
1 parent 039d2e8 commit 49d9086

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tcl/target/esp108.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,13 @@ proc configure_esp32_flash_bank { TGT FLASH_SIZE } {
7272

7373
# Change the name of the CPU taps depending on if it's enabled or not.
7474
# This way, the user gets immediate feedback in the openocd logs.
75-
75+
set _CPU0NAME cpu0
76+
set _CPU1NAME cpu1
7677
if { $_ONLYCPU == "1" } {
77-
set _CPU0NAME cpu0
7878
set _CPU1NAME ignored
7979
} elseif { $_ONLYCPU == "2" } {
8080
set _CPU0NAME ignored
81-
set _CPU1NAME cpu1
82-
}
81+
}
8382

8483
#Do add both taps, even if one of the CPUs is disabled.
8584
jtag newtap $_CHIPNAME $_CPU0NAME -irlen 5 -expected-id $_CPUTAPID

0 commit comments

Comments
 (0)