localflash.sh 417 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash

# Build and sign application
idf.py build
# sign partition table
espsecure.py sign_data --keyfile "$1" --version 1 /project/build/partition_table/partition-table.bin
# sign application
espsecure.py sign_data --keyfile "$1" --version 1 /project/build/door-controller.bin

# Erase entire flash contents, flash the device, and start a terminal to determine if it is working
idf.py erase_flash flash monitor