1
-
2
1
name=ESP32 Arduino
3
2
version=0.0.1
4
3
5
4
runtime.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"
7
8
8
9
compiler.warning_flags=-w
9
10
compiler.warning_flags.none=-w
@@ -33,14 +34,8 @@ compiler.as.cmd=xtensa-esp32-elf-as
33
34
compiler.ar.cmd=xtensa-esp32-elf-ar
34
35
compiler.ar.flags=cru
35
36
36
- compiler.elf2hex.cmd=esptool.py
37
- compiler.elf2hex.flags=
38
-
39
37
compiler.size.cmd=xtensa-esp32-elf-size
40
38
41
- compiler.python.cmd=python
42
- compiler.python.cmd.windows=python.exe
43
-
44
39
# This can be overriden in boards.txt
45
40
build.extra_flags=-DESP32
46
41
@@ -72,7 +67,7 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" {compiler.c.elf.f
72
67
recipe.objcopy.eep.pattern=
73
68
74
69
## 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"
76
71
77
72
## Save hex
78
73
recipe.output.tmp_file={build.project_name}.bin
@@ -85,13 +80,7 @@ recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss)\s+([0-9]+).*
85
80
86
81
# ------------------------------
87
82
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
-
94
83
tools.esptool.upload.protocol=esp32
95
84
tools.esptool.upload.params.verbose=
96
85
tools.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