Skip to content

Commit 25cbc76

Browse files
author
Marek Matej
committed
soc: espressif: update esptool arguments
Sync with the esptool update. Signed-off-by: Marek Matej <marek.matej@espressif.com>
1 parent ef8149e commit 25cbc76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

soc/espressif/common/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ message("-- Espressif HAL path: ${ESP_IDF_PATH}")
2020

2121
if((CONFIG_ESP_SIMPLE_BOOT OR CONFIG_MCUBOOT) AND NOT CONFIG_SOC_ESP32C6_LPCORE)
2222
if(CONFIG_BUILD_OUTPUT_BIN)
23-
set(ESPTOOL_PY ${ESP_IDF_PATH}/tools/esptool_py/esptool.py)
24-
message("-- Use the esptool.py: ${ESPTOOL_PY}")
23+
set(ESPTOOL_PY ${ESP_IDF_PATH}/tools/esptool_py)
24+
message("-- Use the esptool from: ${ESPTOOL_PY}")
2525

2626
set(ELF2IMAGE_ARG "")
2727
if(NOT CONFIG_MCUBOOT)
2828
set(ELF2IMAGE_ARG "--ram-only-header")
2929
endif()
3030

3131
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
32-
COMMAND ${PYTHON_EXECUTABLE} ${ESPTOOL_PY}
32+
COMMAND PYTHONPATH=${ESPTOOL_PY} ${PYTHON_EXECUTABLE} -m esptool
3333
ARGS --chip ${CONFIG_SOC} elf2image ${ELF2IMAGE_ARG}
34-
--flash_mode dio
35-
--flash_freq ${CONFIG_ESPTOOLPY_FLASHFREQ}
36-
--flash_size ${esptoolpy_flashsize}MB
34+
--flash-mode dio
35+
--flash-freq ${CONFIG_ESPTOOLPY_FLASHFREQ}
36+
--flash-size ${esptoolpy_flashsize}MB
3737
-o ${CMAKE_BINARY_DIR}/zephyr/${KERNEL_BIN_NAME}
3838
${CMAKE_BINARY_DIR}/zephyr/${KERNEL_ELF_NAME})
3939
endif()

0 commit comments

Comments
 (0)