1-
21name=ESP32 Arduino
32version=0.0.1
43
54runtime.tools.xtensa-esp32-elf-gcc.path={runtime.platform.path}/tools/xtensa-esp32-elf
6- runtime.tools.esptool.path={runtime.platform.path}/tools/esptool.py
5+
6+ tools.esptool.cmd=python "{runtime.platform.path}/tools/esptool.py"
7+ tools.esptool.cmd.windows=python.exe "{runtime.platform.path}/tools/esptool.py"
78
89compiler.warning_flags=-w
910compiler.warning_flags.none=-w
@@ -33,14 +34,8 @@ compiler.as.cmd=xtensa-esp32-elf-as
3334compiler.ar.cmd=xtensa-esp32-elf-ar
3435compiler.ar.flags=cru
3536
36- compiler.elf2hex.cmd=esptool.py
37- compiler.elf2hex.flags=
38-
3937compiler.size.cmd=xtensa-esp32-elf-size
4038
41- compiler.python.cmd=python
42- compiler.python.cmd.windows=python.exe
43-
4439# This can be overriden in boards.txt
4540build.extra_flags=-DESP32
4641
@@ -72,7 +67,7 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.f
7267recipe.objcopy.eep.pattern=
7368
7469## Create hex
75- recipe.objcopy.hex.pattern="{compiler.python .cmd}" "{runtime.platform.path}/tools/esptool.py" --chip esp32 elf2image --flash_mode "{build.flash_mode}" --flash_freq "{build.flash_freq}" --flash_size "{build.flash_size}" -o "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.elf"
70+ recipe.objcopy.hex.pattern={tools.esptool .cmd} --chip esp32 elf2image --flash_mode "{build.flash_mode}" --flash_freq "{build.flash_freq}" --flash_size "{build.flash_size}" -o "{build.path}/{build.project_name}.bin" "{build.path}/{build.project_name}.elf"
7671
7772## Save hex
7873recipe.output.tmp_file={build.project_name}.bin
@@ -85,13 +80,7 @@ recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss)\s+([0-9]+).*
8580
8681# ------------------------------
8782
88- tools.esptool.cmd=python
89- tools.esptool.cmd.windows=python.exe
90- tools.esptool.path={runtime.platform.path}/tools/esptool.py
91- tools.esptool.network_cmd=python
92- tools.esptool.network_cmd.windows=python.exe
93-
9483tools.esptool.upload.protocol=esp32
9584tools.esptool.upload.params.verbose=
9685tools.esptool.upload.params.quiet=
97- tools.esptool.upload.pattern=" {cmd}" "{path}" --chip esp32 --port "{serial.port}" --baud {upload.speed} write_flash -z --flash_freq {build.flash_freq} --flash_mode {build.flash_mode} --flash_size {build.flash_size} 0x1000 "{runtime.platform.path}/tools/sdk/bin/bootloader.bin" 0x8000 "{runtime.platform.path}/tools/sdk/bin/partitions_singleapp.bin" 0x10000 "{build.path}/{build.project_name}.bin"
86+ tools.esptool.upload.pattern={cmd} --chip esp32 --port "{serial.port}" --baud {upload.speed} write_flash -z --flash_freq {build.flash_freq} --flash_mode {build.flash_mode} --flash_size {build.flash_size} 0x1000 "{runtime.platform.path}/tools/sdk/bin/bootloader.bin" 0x8000 "{runtime.platform.path}/tools/sdk/bin/partitions_singleapp.bin" 0x10000 "{build.path}/{build.project_name}.bin"
0 commit comments