Skip to content

Commit c244238

Browse files
authored
add env ESP_ROM_ELF_DIR
1 parent 1c12f23 commit c244238

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,8 @@ def populate_idf_env_vars(idf_env):
536536
if "IDF_TOOLS_PATH" in idf_env:
537537
del idf_env["IDF_TOOLS_PATH"]
538538

539+
idf_env["ESP_ROM_ELF_DIR"] = platform.get_package_dir("tool-esp-rom-elfs")
540+
539541

540542
def get_target_config(project_configs, target_index, cmake_api_reply_dir):
541543
target_json = project_configs.get("targets")[target_index].get("jsonFile", "")
@@ -1936,7 +1938,7 @@ def _skip_prj_source_files(node):
19361938
(
19371939
board.get(
19381940
"upload.bootloader_offset",
1939-
"0x1000" if mcu in ["esp32", "esp32s2"] else ("0x2000" if mcu in ["esp32p4"] else "0x0"),
1941+
"0x1000" if mcu in ["esp32", "esp32s2"] else ("0x2000" if mcu in ["esp32p4","esp32c5"] else "0x0"),
19401942
),
19411943
os.path.join("$BUILD_DIR", "bootloader.bin"),
19421944
),

0 commit comments

Comments
 (0)