Skip to content

Commit

Permalink
Fix ULP toolchain enable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason2866 authored Sep 14, 2024
1 parent ace601f commit 8cb622d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ def configure_default_packages(self, variables, targets):
self.packages["riscv32-esp-elf"]["optional"] = False
self.packages["riscv32-esp-elf"]["version"] = tc_path

# Enable FSM ULP toolchain for ESP32S2, ESP32S3 when IDF is selected
for available_mcu in ("esp32s2", "esp32s3"):
if "espidf" and available_mcu == mcu and tl_flag:
# Enable FSM ULP toolchain for ESP32, ESP32S2, ESP32S3 when IDF is selected
for available_mcu in ("esp32", "esp32s2", "esp32s3"):
if "espidf" in frameworks and available_mcu == mcu and tl_flag:
tc_path = "file://" + join(IDF_TOOLS_PATH_DEFAULT, "tools", "tc-ulp")
self.packages["esp32ulp-elf"]["optional"] = False
self.packages["esp32ulp-elf"]["version"] = tc_path
# Enable RISC-V ULP toolchain for ESP32C6, ESP32S2, ESP32S3 when IDF is selected
for available_mcu in ("esp32s2", "esp32s3", "esp32c6"):
if "espidf" and available_mcu == mcu and tl_flag:
if "espidf" in frameworks and available_mcu == mcu and tl_flag:
tc_path = "file://" + join(IDF_TOOLS_PATH_DEFAULT, "tools", "tc-rv32")
self.packages["riscv32-esp-elf"]["optional"] = False
self.packages["riscv32-esp-elf"]["version"] = tc_path
Expand Down

0 comments on commit 8cb622d

Please sign in to comment.