8 lines
305 B
Bash
Executable File
8 lines
305 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Hard-reset the DUT via esptool (RTS/DTR toggle), leaving flash intact.
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
eval "$(./tools/discover_devices.sh)"
|
|
esptool.py --port "$DUT_PORT" --before default_reset --after hard_reset chip_id >/dev/null 2>&1 || true
|
|
echo "DUT reset: $DUT_PORT"
|