Add prebuilt firmware package
This commit is contained in:
26
firmware/flash.sh
Executable file
26
firmware/flash.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: $0 /dev/ttyUSB0" >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
radick_port="$1"
|
||||
firmware_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
echo "Keep the RD-03D external 5 V supply OFF while flashing."
|
||||
|
||||
exec python3 -m esptool \
|
||||
--chip esp32s3 \
|
||||
--port "$radick_port" \
|
||||
--baud 460800 \
|
||||
--before default_reset \
|
||||
--after hard_reset \
|
||||
write_flash \
|
||||
--flash_mode dio \
|
||||
--flash_freq 80m \
|
||||
--flash_size 4MB \
|
||||
0x0 "$firmware_dir/bootloader.bin" \
|
||||
0x8000 "$firmware_dir/partition-table.bin" \
|
||||
0x10000 "$firmware_dir/radick.bin"
|
||||
Reference in New Issue
Block a user