|
69 | 69 | IDF_ENV_VERSION = "1.0.0"
|
70 | 70 | FRAMEWORK_DIR = platform.get_package_dir("framework-espidf")
|
71 | 71 | TOOLCHAIN_DIR = platform.get_package_dir(
|
72 |
| - "%s" % ("riscv32-esp-elf" if mcu in ("esp32c2", "esp32c3", "esp32c6", "esp32h2") else ("xtensa-esp-elf")) |
| 72 | + "%s" % ("xtensa-esp-elf" if mcu in ("esp32", "esp32s2", "esp32s3") else ("riscv32-esp-elf")) |
73 | 73 | )
|
74 | 74 |
|
75 | 75 |
|
@@ -501,7 +501,7 @@ def extract_linker_script_fragments_backup(framework_components_dir, sdk_config)
|
501 | 501 | sys.stderr.write("Error: Failed to extract paths to linker script fragments\n")
|
502 | 502 | env.Exit(1)
|
503 | 503 |
|
504 |
| - if mcu in ("esp32c2", "esp32c3", "esp32c6", "esp32h2", "esp32p4"): |
| 504 | + if mcu not in ("esp32", "esp32s2", "esp32s3"): |
505 | 505 | result.append(os.path.join(framework_components_dir, "riscv", "linker.lf"))
|
506 | 506 |
|
507 | 507 | # Add extra linker fragments
|
@@ -1656,7 +1656,7 @@ def _skip_prj_source_files(node):
|
1656 | 1656 | (
|
1657 | 1657 | board.get(
|
1658 | 1658 | "upload.bootloader_offset",
|
1659 |
| - "0x0" if mcu in ["esp32c2", "esp32c3", "esp32c6", "esp32s3", "esp32h2"] else ("0x2000" if mcu in ["esp32p4"] else "0x1000"), |
| 1659 | + "0x1000" if mcu in ["esp32", "esp32s2"] else ("0x2000" if mcu in ["esp32p4"] else "0x0"), |
1660 | 1660 | ),
|
1661 | 1661 | os.path.join("$BUILD_DIR", "bootloader.bin"),
|
1662 | 1662 | ),
|
|
0 commit comments