Skip to content

Commit fca4eb9

Browse files
committed
esp32s2: Fixes target name
1 parent cdb3704 commit fca4eb9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/flash/nor/esp32s2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ FLASH_BANK_COMMAND_HANDLER(esp32_s2_flash_bank_command)
120120

121121
static int esp32_s2_get_info(struct flash_bank *bank, char *buf, int buf_size)
122122
{
123-
snprintf(buf, buf_size, "ESP32_S2");
123+
snprintf(buf, buf_size, "ESP32S2");
124124
return ERROR_OK;
125125
}
126126

@@ -136,7 +136,7 @@ static const struct command_registration esp32_s2_command_handlers[] = {
136136
};
137137

138138
struct flash_driver esp32_s2_flash = {
139-
.name = "esp32_s2",
139+
.name = "esp32s2",
140140
.commands = esp32_s2_command_handlers,
141141
.flash_bank_command = esp32_s2_flash_bank_command,
142142
.erase = esp_xtensa_erase,

src/rtos/FreeRTOS.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static const struct FreeRTOS_params FreeRTOS_params_list[] = {
123123
rtos_freertos_esp32_pick_stacking_info, /* fn to pick stacking_info */
124124
},
125125
{
126-
"esp32_s2", /* target_name */
126+
"esp32s2", /* target_name */
127127
4, /* thread_count_width; */
128128
4, /* pointer_width; */
129129
16, /* list_next_offset; */

tcl/target/esp32s2.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ source [find target/esp_common.cfg]
77
if { [info exists CHIPNAME] } {
88
set _CHIPNAME $CHIPNAME
99
} else {
10-
set _CHIPNAME esp32_s2
10+
set _CHIPNAME esp32s2
1111
}
1212

1313
if { [info exists CPUTAPID] } {
@@ -23,9 +23,9 @@ set _TAPNAME $_CHIPNAME.$_CPUNAME
2323
jtag newtap $_CHIPNAME $_CPUNAME -irlen 5 -expected-id $_CPUTAPID
2424

2525
if { $_RTOS == "none" } {
26-
target create $_TARGETNAME esp32_s2 -endian little -chain-position $_TAPNAME
26+
target create $_TARGETNAME esp32s2 -endian little -chain-position $_TAPNAME
2727
} else {
28-
target create $_TARGETNAME esp32_s2 -endian little -chain-position $_TAPNAME -rtos $_RTOS
28+
target create $_TARGETNAME esp32s2 -endian little -chain-position $_TAPNAME -rtos $_RTOS
2929
}
3030

3131
configure_esp_workarea $_TARGETNAME 0x40030000 0x3400 0x3FFE0000 0x6000

0 commit comments

Comments
 (0)