diff --git a/espat/flasher/at_customize.bin b/espat/flasher/at_customize.bin index 01833b7..2b7ae42 100644 Binary files a/espat/flasher/at_customize.bin and b/espat/flasher/at_customize.bin differ diff --git a/espat/flasher/ble_data.bin b/espat/flasher/ble_data.bin new file mode 100644 index 0000000..1cbe3ac --- /dev/null +++ b/espat/flasher/ble_data.bin @@ -0,0 +1 @@ +R'•{"Service": [{"index": 0, "uuid": "2800", "uuid_len": 16, "val_max_len": 2, "value": "A002", "perm": 1, "val_cur_len": 2}, {"index": 1, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "02", "perm": 1, "val_cur_len": 1}, {"index": 2, "uuid": "C300", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 1, "val_cur_len": 1}, {"index": 3, "uuid": "2901", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 17, "val_cur_len": 1}, {"index": 4, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "02", "perm": 1, "val_cur_len": 1}, {"index": 5, "uuid": "C301", "uuid_len": 16, "val_max_len": 512, "value": "3031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031", "perm": 1, "val_cur_len": 512}, {"index": 6, "uuid": "2901", "uuid_len": 16, "val_max_len": 512, "value": "3031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031", "perm": 17, "val_cur_len": 512}, {"index": 7, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "08", "perm": 1, "val_cur_len": 1}, {"index": 8, "uuid": "C302", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 16, "val_cur_len": 1}, {"index": 9, "uuid": "2901", "uuid_len": 16, "val_max_len": 1, "value": "01", "perm": 1, "val_cur_len": 1}, {"index": 10, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "04", "perm": 1, "val_cur_len": 1}, {"index": 11, "uuid": "C303", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 16, "val_cur_len": 1}, {"index": 12, "uuid": "2901", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 16, "val_cur_len": 1}, {"index": 13, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "08", "perm": 1, "val_cur_len": 1}, {"index": 14, "uuid": "C304", "uuid_len": 16, "val_max_len": 512, "value": "3031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031323334353637383930313233343536373839303132333435363738393031", "perm": 16, "val_cur_len": 512}, {"index": 15, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "10", "perm": 1, "val_cur_len": 1}, {"index": 16, "uuid": "C305", "uuid_len": 16, "val_max_len": 512, "value": "", "perm": 1, "val_cur_len": 0}, {"index": 17, "uuid": "2902", "uuid_len": 16, "val_max_len": 2, "value": "0000", "perm": 17, "val_cur_len": 2}, {"index": 18, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "20", "perm": 1, "val_cur_len": 1}, {"index": 19, "uuid": "C306", "uuid_len": 16, "val_max_len": 512, "value": "", "perm": 1, "val_cur_len": 0}, {"index": 20, "uuid": "2902", "uuid_len": 16, "val_max_len": 2, "value": "0000", "perm": 17, "val_cur_len": 2}, {"index": 21, "uuid": "2803", "uuid_len": 16, "val_max_len": 1, "value": "02", "perm": 1, "val_cur_len": 1}, {"index": 22, "uuid": "C307", "uuid_len": 16, "val_max_len": 1, "value": "30", "perm": 1, "val_cur_len": 1}, {"index": 23, "uuid": "2901", "uuid_len": 16, "val_max_len": 256, "value": "30", "perm": 17, "val_cur_len": 1}]} \ No newline at end of file diff --git a/espat/flasher/bootloader.bin b/espat/flasher/bootloader.bin index 6ddf133..975c148 100644 Binary files a/espat/flasher/bootloader.bin and b/espat/flasher/bootloader.bin differ diff --git a/espat/flasher/esp-at.bin b/espat/flasher/esp-at.bin index cad9225..9e2f45d 100644 Binary files a/espat/flasher/esp-at.bin and b/espat/flasher/esp-at.bin differ diff --git a/espat/flasher/flash.sh b/espat/flasher/flash.sh index 81f5c50..ff96e0f 100755 --- a/espat/flasher/flash.sh +++ b/espat/flasher/flash.sh @@ -16,5 +16,9 @@ bossac -i -d --port=ttyACM0 -e -w -v --offset=0x2000 -R SerialNINAPassthrough.in echo "Waiting for a bit..." sleep 1 +# Steps to update the firmware: +# 1. Run `make clean` in the esp32-at directory. +# 2. Run `make` in the esp32-at directory. +# 3. Copy over all the .bin files somewhere in the esp32-at/build directory to this directory. echo "Flashing firmware to ESP32..." -python $HOME/src/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyACM0 --baud 921600 --before no_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 ota_data_initial.bin 0x1000 bootloader.bin 0x20000 at_customize.bin 0x24000 server_cert.bin 0x26000 server_key.bin 0x28000 server_ca.bin 0x2a000 client_cert.bin 0x2c000 client_key.bin 0x2e000 client_ca.bin 0x30000 factory_param.bin 0xf000 phy_init_data.bin 0x100000 esp-at.bin 0x8000 partitions_at.bin +python $HOME/src/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyACM0 --baud 921600 --before no_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 ota_data_initial.bin 0x1000 bootloader.bin 0x20000 at_customize.bin 0x21000 ble_data.bin 0x24000 server_cert.bin 0x25000 server_key.bin 0x26000 server_ca.bin 0x27000 client_cert.bin 0x28000 client_key.bin 0x29000 client_ca.bin 0x2a000 factory_param.bin 0xf000 phy_init_data.bin 0x40000 esp-at.bin 0x8000 partitions_at.bin diff --git a/espat/flasher/partitions_at.bin b/espat/flasher/partitions_at.bin index 38ca51b..701fda8 100644 Binary files a/espat/flasher/partitions_at.bin and b/espat/flasher/partitions_at.bin differ