mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/introduce_esp32c6_target' into 'master'
ESP32C6: Introduce the target See merge request espressif/esp-idf!19494
This commit is contained in:
commit
349d6555ea
10
Kconfig
10
Kconfig
@ -13,6 +13,7 @@ mainmenu "Espressif IoT Development Framework Configuration"
|
||||
config IDF_ENV_FPGA
|
||||
# This option is for internal use only
|
||||
bool
|
||||
default "y" if IDF_TARGET_ESP32C6 # TODO: IDF-5630
|
||||
option env="IDF_ENV_FPGA"
|
||||
|
||||
config IDF_TARGET_ARCH_RISCV
|
||||
@ -90,6 +91,12 @@ mainmenu "Espressif IoT Development Framework Configuration"
|
||||
select FREERTOS_UNICORE
|
||||
select IDF_TARGET_ARCH_RISCV
|
||||
|
||||
config IDF_TARGET_ESP32C6
|
||||
bool
|
||||
default "y" if IDF_TARGET="esp32c6"
|
||||
select FREERTOS_UNICORE
|
||||
select IDF_TARGET_ARCH_RISCV
|
||||
|
||||
config IDF_TARGET_LINUX
|
||||
bool
|
||||
default "y" if IDF_TARGET="linux"
|
||||
@ -100,8 +107,9 @@ mainmenu "Espressif IoT Development Framework Configuration"
|
||||
default 0x0002 if IDF_TARGET_ESP32S2
|
||||
default 0x0005 if IDF_TARGET_ESP32C3
|
||||
default 0x0009 if IDF_TARGET_ESP32S3
|
||||
default 0x000C if IDF_TARGET_ESP32C2
|
||||
default 0x000A if IDF_TARGET_ESP32H2_BETA_VERSION_1
|
||||
default 0x000C if IDF_TARGET_ESP32C2
|
||||
default 0x000D if IDF_TARGET_ESP32C6
|
||||
default 0x000E if IDF_TARGET_ESP32H2_BETA_VERSION_2 # ESP32H2-TODO: IDF-3475
|
||||
default 0xFFFF
|
||||
|
||||
|
1
components/bt/controller/esp32c6/Kconfig.in
Normal file
1
components/bt/controller/esp32c6/Kconfig.in
Normal file
@ -0,0 +1 @@
|
||||
# TODO: IDF-5727
|
0
components/esp_adc/esp32c6/include/.gitkeep
Normal file
0
components/esp_adc/esp32c6/include/.gitkeep
Normal file
0
components/esp_gdbstub/esp32c6/gdbstub_esp32c6.c
Normal file
0
components/esp_gdbstub/esp32c6/gdbstub_esp32c6.c
Normal file
0
components/esp_hw_support/port/esp32c6/Kconfig.mac
Normal file
0
components/esp_hw_support/port/esp32c6/Kconfig.mac
Normal file
0
components/esp_rom/esp32c6/.gitkeep
Normal file
0
components/esp_rom/esp32c6/.gitkeep
Normal file
0
components/esp_rom/include/esp32c6/.gitkeep
Normal file
0
components/esp_rom/include/esp32c6/.gitkeep
Normal file
0
components/esp_system/ld/esp32c6/memory.ld.in
Normal file
0
components/esp_system/ld/esp32c6/memory.ld.in
Normal file
0
components/esp_system/port/soc/esp32c6/Kconfig.cpu
Normal file
0
components/esp_system/port/soc/esp32c6/Kconfig.cpu
Normal file
0
components/hal/esp32c6/efuse_hal.c
Normal file
0
components/hal/esp32c6/efuse_hal.c
Normal file
0
components/hal/esp32c6/include/.gitkeep
Normal file
0
components/hal/esp32c6/include/.gitkeep
Normal file
0
components/heap/port/esp32c6/memory_layout.c
Normal file
0
components/heap/port/esp32c6/memory_layout.c
Normal file
0
components/idf_test/include/esp32c6/.gitkeep
Normal file
0
components/idf_test/include/esp32c6/.gitkeep
Normal file
0
components/soc/esp32c6/CMakeLists.txt
Normal file
0
components/soc/esp32c6/CMakeLists.txt
Normal file
0
components/spi_flash/esp32c6/flash_ops_esp32c6.c
Normal file
0
components/spi_flash/esp32c6/flash_ops_esp32c6.c
Normal file
@ -15,6 +15,8 @@ function(__add_dfu_targets)
|
||||
return()
|
||||
elseif("${target}" STREQUAL "esp32c2")
|
||||
return()
|
||||
elseif("${target}" STREQUAL "esp32c6")
|
||||
return()
|
||||
elseif("${target}" STREQUAL "linux")
|
||||
return()
|
||||
else()
|
||||
|
18
tools/cmake/toolchain-esp32c6.cmake
Normal file
18
tools/cmake/toolchain-esp32c6.cmake
Normal file
@ -0,0 +1,18 @@
|
||||
include($ENV{IDF_PATH}/tools/cmake/utilities.cmake)
|
||||
|
||||
set(CMAKE_SYSTEM_NAME Generic)
|
||||
|
||||
set(CMAKE_C_COMPILER riscv32-esp-elf-gcc)
|
||||
set(CMAKE_CXX_COMPILER riscv32-esp-elf-g++)
|
||||
set(CMAKE_ASM_COMPILER riscv32-esp-elf-gcc)
|
||||
set(_CMAKE_TOOLCHAIN_PREFIX riscv32-esp-elf-)
|
||||
|
||||
remove_duplicated_flags("-march=rv32imac ${CMAKE_C_FLAGS}" UNIQ_CMAKE_C_FLAGS)
|
||||
set(CMAKE_C_FLAGS "${UNIQ_CMAKE_C_FLAGS}" CACHE STRING "C Compiler Base Flags" FORCE)
|
||||
remove_duplicated_flags("-march=rv32imac ${CMAKE_CXX_FLAGS}" UNIQ_CMAKE_CXX_FLAGS)
|
||||
set(CMAKE_CXX_FLAGS "${UNIQ_CMAKE_CXX_FLAGS}" CACHE STRING "C++ Compiler Base Flags" FORCE)
|
||||
|
||||
remove_duplicated_flags("-nostartfiles -march=rv32imac --specs=nosys.specs \
|
||||
${CMAKE_EXE_LINKER_FLAGS}"
|
||||
UNIQ_CMAKE_SAFE_EXE_LINKER_FLAGS)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${UNIQ_CMAKE_SAFE_EXE_LINKER_FLAGS}" CACHE STRING "Linker Base Flags" FORCE)
|
@ -14,6 +14,8 @@ function(__add_uf2_targets)
|
||||
set(uf2_family_id "0x332726f6")
|
||||
elseif("${target}" STREQUAL "esp32c2")
|
||||
set(uf2_family_id "0x2b88d29c")
|
||||
elseif("${target}" STREQUAL "esp32c6") # TODO: IDF-5626
|
||||
set(uf2_family_id "0x2b88d29c")
|
||||
elseif("${target}" STREQUAL "linux")
|
||||
return()
|
||||
else()
|
||||
|
@ -59,7 +59,8 @@ GDB_REGS_INFO_RISCV_ILP32 = [
|
||||
GDB_REGS_INFO = {
|
||||
'esp32c3': GDB_REGS_INFO_RISCV_ILP32,
|
||||
'esp32c2': GDB_REGS_INFO_RISCV_ILP32,
|
||||
'esp32h2': GDB_REGS_INFO_RISCV_ILP32
|
||||
'esp32h2': GDB_REGS_INFO_RISCV_ILP32,
|
||||
'esp32c6': GDB_REGS_INFO_RISCV_ILP32
|
||||
}
|
||||
|
||||
PanicInfo = namedtuple('PanicInfo', 'core_id regs stack_base_addr stack_data')
|
||||
@ -153,7 +154,8 @@ def parse_idf_riscv_panic_output(panic_text): # type: (str) -> PanicInfo
|
||||
PANIC_OUTPUT_PARSERS = {
|
||||
'esp32c3': parse_idf_riscv_panic_output,
|
||||
'esp32c2': parse_idf_riscv_panic_output,
|
||||
'esp32h2': parse_idf_riscv_panic_output
|
||||
'esp32h2': parse_idf_riscv_panic_output,
|
||||
'esp32c6': parse_idf_riscv_panic_output
|
||||
}
|
||||
|
||||
|
||||
|
@ -37,4 +37,4 @@ if os.name != 'nt':
|
||||
URL_TO_DOC = 'https://docs.espressif.com/projects/esp-idf'
|
||||
|
||||
SUPPORTED_TARGETS = ['esp32', 'esp32s2', 'esp32c3', 'esp32s3', 'esp32c2']
|
||||
PREVIEW_TARGETS = ['linux', 'esp32h2']
|
||||
PREVIEW_TARGETS = ['linux', 'esp32h2', 'esp32c6']
|
||||
|
20
tools/idf_size_yaml/esp32c6_data_info.yaml
Normal file
20
tools/idf_size_yaml/esp32c6_data_info.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
# Data_type:
|
||||
# primary_address: value
|
||||
# length: value or equation
|
||||
# secondary_address: value if exist
|
||||
DRAM:
|
||||
primary_address: 0x40800000
|
||||
length: 0x80000
|
||||
secondary_address: 0x40800000
|
||||
IRAM:
|
||||
primary_address: 0x40800000
|
||||
length: 0x80000
|
||||
CACHE_I:
|
||||
primary_address: 0x42000000
|
||||
length: 0x800000
|
||||
CACHE_D:
|
||||
primary_address: 0x42000000
|
||||
length: 0x800000
|
||||
RTC_SLOW_D: # TODO: IDF-5667 Better to rename to LP_RAM
|
||||
primary_address: 0x50000000
|
||||
length: 0x4000
|
@ -438,7 +438,8 @@
|
||||
"esp32s3",
|
||||
"esp32c3",
|
||||
"esp32h2",
|
||||
"esp32c2"
|
||||
"esp32c2",
|
||||
"esp32c6"
|
||||
],
|
||||
"version_cmd": [
|
||||
"riscv32-esp-elf-gcc",
|
||||
|
Loading…
Reference in New Issue
Block a user