|
|
@ -298,7 +298,6 @@ flash() {
|
|
|
|
# This is defined in the (optional) user config.
|
|
|
|
# This is defined in the (optional) user config.
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
${preFlash_HOOKS}
|
|
|
|
${preFlash_HOOKS}
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_device_port
|
|
|
|
find_device_port
|
|
|
|
run_arduino_cli upload \
|
|
|
|
run_arduino_cli upload \
|
|
|
@ -306,25 +305,18 @@ flash() {
|
|
|
|
--port "${DEVICE_PORT}" \
|
|
|
|
--port "${DEVICE_PORT}" \
|
|
|
|
--verbose
|
|
|
|
--verbose
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
# This is defined in the (optional) user config.
|
|
|
|
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
|
|
|
|
${postFlash_HOOKS}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
flash_from_bootloader() {
|
|
|
|
|
|
|
|
compile "$@"
|
|
|
|
|
|
|
|
prompt_before_flashing
|
|
|
|
|
|
|
|
find_bootloader_ports
|
|
|
|
|
|
|
|
run_arduino_cli upload \
|
|
|
|
run_arduino_cli upload \
|
|
|
|
--fqbn "${FQBN}" \
|
|
|
|
--fqbn "${FQBN}" \
|
|
|
|
--port "${DEVICE_PORT_BOOTLOADER}" \
|
|
|
|
--port "${DEVICE_PORT_BOOTLOADER}" \
|
|
|
|
--verbose
|
|
|
|
--verbose
|
|
|
|
|
|
|
|
|
|
|
|
return 0
|
|
|
|
# This is defined in the (optional) user config.
|
|
|
|
|
|
|
|
# shellcheck disable=SC2154
|
|
|
|
|
|
|
|
${postFlash_HOOKS}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hex_with_bootloader() {
|
|
|
|
hex_with_bootloader() {
|
|
|
|
compile
|
|
|
|
compile
|
|
|
|
|
|
|
|
|
|
|
@ -622,9 +614,6 @@ usage() {
|
|
|
|
disassemble
|
|
|
|
disassemble
|
|
|
|
Decompile the sketch.
|
|
|
|
Decompile the sketch.
|
|
|
|
|
|
|
|
|
|
|
|
reset-device
|
|
|
|
|
|
|
|
Reset the device.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
flash
|
|
|
|
flash
|
|
|
|
Flashes the firmware using avrdude.
|
|
|
|
Flashes the firmware using avrdude.
|
|
|
|
|
|
|
|
|
|
|
|