From 9f938ab8ba5af561bd44dbc7142f338ce317a01a Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 1 Nov 2025 09:46:52 +0800 Subject: Etlas project. --- esp32/build/esp-idf/esptool_py/app-flash_args.in | 2 ++ esp32/build/esp-idf/esptool_py/cmake_install.cmake | 39 ++++++++++++++++++++++ .../build/esp-idf/esptool_py/flasher_args.json.in | 24 +++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 esp32/build/esp-idf/esptool_py/app-flash_args.in create mode 100644 esp32/build/esp-idf/esptool_py/cmake_install.cmake create mode 100644 esp32/build/esp-idf/esptool_py/flasher_args.json.in (limited to 'esp32/build/esp-idf/esptool_py') diff --git a/esp32/build/esp-idf/esptool_py/app-flash_args.in b/esp32/build/esp-idf/esptool_py/app-flash_args.in new file mode 100644 index 0000000..092de65 --- /dev/null +++ b/esp32/build/esp-idf/esptool_py/app-flash_args.in @@ -0,0 +1,2 @@ +--flash_mode dio --flash_freq 40m --flash_size detect +0x10000 $.bin \ No newline at end of file diff --git a/esp32/build/esp-idf/esptool_py/cmake_install.cmake b/esp32/build/esp-idf/esptool_py/cmake_install.cmake new file mode 100644 index 0000000..912ba20 --- /dev/null +++ b/esp32/build/esp-idf/esptool_py/cmake_install.cmake @@ -0,0 +1,39 @@ +# Install script for directory: /opt/esp-idf/components/esptool_py + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "TRUE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/home/sadeep/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin/xtensa-esp32-elf-objdump") +endif() + diff --git a/esp32/build/esp-idf/esptool_py/flasher_args.json.in b/esp32/build/esp-idf/esptool_py/flasher_args.json.in new file mode 100644 index 0000000..bdc7d3d --- /dev/null +++ b/esp32/build/esp-idf/esptool_py/flasher_args.json.in @@ -0,0 +1,24 @@ +{ + "write_flash_args" : [ "--flash_mode", "dio", + "--flash_size", "detect", + "--flash_freq", "40m" ], + "flash_settings" : { + "flash_mode": "dio", + "flash_size": "detect", + "flash_freq": "40m" + }, + "flash_files" : { + "0x1000" : "bootloader/bootloader.bin", + "0x10000" : "$.bin", + "0x8000" : "partition_table/partition-table.bin" + }, + "bootloader" : { "offset" : "0x1000", "file" : "bootloader/bootloader.bin", "encrypted" : "false" }, + "app" : { "offset" : "0x10000", "file" : "$.bin", "encrypted" : "false" }, + "partition-table" : { "offset" : "0x8000", "file" : "partition_table/partition-table.bin", "encrypted" : "false" }, + "extra_esptool_args" : { + "after" : "hard_reset", + "before" : "default_reset", + "stub" : true, + "chip" : "esp32" + } +} -- cgit v1.2.3