2022-05-21 16:49:54 -05:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#
|
|
|
|
|
2023-06-18 03:25:07 -05:00
|
|
|
# Source the ESP common configuration file.
|
2022-06-30 05:14:27 -05:00
|
|
|
source [find target/esp_common.cfg]
|
|
|
|
|
2023-06-18 03:25:07 -05:00
|
|
|
# Target specific global variables
|
|
|
|
set _CHIPNAME "esp32"
|
|
|
|
set _CPUTAPID 0x120034e5
|
|
|
|
set _ESP_ARCH "xtensa"
|
|
|
|
set _ONLYCPU 3
|
|
|
|
set _FLASH_VOLTAGE 3.3
|
|
|
|
set _ESP_SMP_TARGET 1
|
|
|
|
set _ESP_SMP_BREAK 1
|
|
|
|
set _ESP_EFUSE_MAC_ADDR_REG 0x3ff5A004
|
2022-05-21 16:49:54 -05:00
|
|
|
|
|
|
|
if { [info exists ESP32_ONLYCPU] } {
|
|
|
|
set _ONLYCPU $ESP32_ONLYCPU
|
|
|
|
}
|
|
|
|
|
|
|
|
if { [info exists ESP32_FLASH_VOLTAGE] } {
|
|
|
|
set _FLASH_VOLTAGE $ESP32_FLASH_VOLTAGE
|
|
|
|
}
|
|
|
|
|
2023-06-18 03:25:07 -05:00
|
|
|
proc esp32_memprot_is_enabled { } {
|
|
|
|
return 0
|
2022-06-30 05:14:27 -05:00
|
|
|
}
|
|
|
|
|
2023-06-18 03:25:07 -05:00
|
|
|
proc esp32_soc_reset { } {
|
|
|
|
soft_reset_halt
|
2022-06-30 05:14:27 -05:00
|
|
|
}
|
|
|
|
|
2023-06-18 03:25:07 -05:00
|
|
|
create_esp_target $_ESP_ARCH
|
2022-06-25 00:27:32 -05:00
|
|
|
|
|
|
|
source [find target/xtensa-core-esp32.cfg]
|