Skip to content

Commit

Permalink
Update configs
Browse files Browse the repository at this point in the history
  • Loading branch information
me-no-dev committed Apr 4, 2022
1 parent f410ad9 commit a3e8a5f
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
9 changes: 5 additions & 4 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ esp32s3.name=ESP32S3 Dev Module
esp32s3.vid.0=0x303a
esp32s3.pid.0=0x1001

esp32s3.bootloader.tool=esptool_py
esp32s3.bootloader.tool.default=esptool_py

esp32s3.upload.tool=esptool_py
esp32s3.upload.tool.serial=esptool_py
esp32s3.upload.tool.network=esptool_py
esp32s3.bootloader.tool.serial=esptool_py
esp32s3.upload.tool.default=esptool_py
esp32s3.upload.tool.network=esp_ota

esp32s3.upload.maximum_size=1310720
esp32s3.upload.maximum_data_size=327680
Expand Down Expand Up @@ -1018,7 +1020,6 @@ esp32s3box.vid.0=0x303a
esp32s3box.pid.0=0x1001

esp32s3box.upload.tool=esptool_py

esp32s3box.upload.maximum_size=1310720
esp32s3box.upload.maximum_data_size=327680
esp32s3box.upload.speed=921600
Expand Down
20 changes: 16 additions & 4 deletions platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ tools.esptool_py.cmd.windows=esptool.exe
tools.esptool_py.network_cmd=python3 "{runtime.platform.path}/tools/espota.py" -r
tools.esptool_py.network_cmd.windows="{runtime.platform.path}/tools/espota.exe" -r

tools.esp_ota.cmd=python3 "{runtime.platform.path}/tools/espota.py" -r
tools.esp_ota.cmd.windows="{runtime.platform.path}/tools/espota.exe" -r

tools.gen_esp32part.cmd=python3 "{runtime.platform.path}/tools/gen_esp32part.py"
tools.gen_esp32part.cmd.windows="{runtime.platform.path}/tools/gen_esp32part.exe"

Expand Down Expand Up @@ -210,10 +213,6 @@ tools.esptool_py.upload.pattern_args=--chip {build.mcu} --port "{serial.port}" -
tools.esptool_py.upload.pattern="{path}/{cmd}" {upload.pattern_args}
tools.esptool_py.upload.pattern.linux=python3 "{path}/{cmd}" {upload.pattern_args}

## Upload Sketch Through OTA
## -------------------------
tools.esptool_py.upload.network_pattern={network_cmd} -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin"

## Program Application
## -------------------
tools.esptool_py.program.params.verbose=
Expand All @@ -224,6 +223,7 @@ tools.esptool_py.program.pattern.linux=python3 "{path}/{cmd}" {program.pattern_a

## Erase Chip (before burning the bootloader)
## ------------------------------------------
tools.esptool_py.erase.protocol=serial
tools.esptool_py.erase.params.verbose=
tools.esptool_py.erase.params.quiet=
tools.esptool_py.erase.pattern_args=--chip {build.mcu} --port "{serial.port}" --baud {upload.speed} {upload.flags} --before default_reset --after hard_reset erase_flash
Expand All @@ -232,6 +232,18 @@ tools.esptool_py.erase.pattern.linux=python3 "{path}/{cmd}" {erase.pattern_args}

## Burn Bootloader
## ---------------
tools.esptool_py.bootloader.protocol=serial
tools.esptool_py.bootloader.params.verbose=
tools.esptool_py.bootloader.params.quiet=
tools.esptool_py.bootloader.pattern=

## Upload Sketch Through OTA (Arduino IDE 1.x)
## -------------------------------------------
## The following rule is deprecated by pluggable discovery.
## We keep it to avoid breaking compatibility with the Arduino Java IDE.
tools.esptool_py.upload.network_pattern={network_cmd} -i "{serial.port}" -p "{network.port}" "--auth={network.password}" -f "{build.path}/{build.project_name}.bin"

## Upload Sketch Through OTA (Arduino IDE 2.x)
## -------------------------------------------
tools.esp_ota.upload.protocol=network
tools.esp_ota.upload.pattern={cmd} -i "{upload.port.address}" -p "{upload.port.properties.port}" "--auth={upload.field.password}" -f "{build.path}/{build.project_name}.bin"
3 changes: 2 additions & 1 deletion programmers.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
esptool.name=Esptool
esptool.communication=USB
esptool.communication=serial
esptool.protocol=serial
esptool.program.protocol=serial
esptool.program.tool=esptool_py
esptool.program.tool.default=esptool_py
esptool.program.extra_params=
Expand Down

0 comments on commit a3e8a5f

Please sign in to comment.