Skip to content

Commit bf71400

Browse files
committed
Adapt export and combine scripts to new compile flow
1 parent 4ae014f commit bf71400

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

combine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import sys;
44

5-
booloaderData = open("UNOR4USBBridge/build/esp32.esp32.esp32s3/UNOR4USBBridge.ino.bootloader.bin", "rb").read()
6-
partitionData = open("UNOR4USBBridge/build/esp32.esp32.esp32s3/UNOR4USBBridge.ino.partitions.bin", "rb").read()
5+
booloaderData = open("UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/UNOR4USBBridge.ino.bootloader.bin", "rb").read()
6+
partitionData = open("UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/UNOR4USBBridge.ino.partitions.bin", "rb").read()
77
bootApp = open("boot/boot_app0.bin", "rb").read()
8-
appData = open("UNOR4USBBridge/build/esp32.esp32.esp32s3/UNOR4USBBridge.ino.bin", "rb").read()
8+
appData = open("UNOR4USBBridge/build/esp32-patched.esp32.esp32s3/UNOR4USBBridge.ino.bin", "rb").read()
99
certsData = open("x509_crt_bundle", "rb").read()
1010

1111
# 0x000000 bootloader

export.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
rm -f S3.bin
33
rm -f x509_crt_bundle
44
echo "Build Sketch"
5-
arduino-cli compile -e --clean --quiet --fqbn=esp32:esp32:esp32s3:JTAGAdapter=default,PSRAM=disabled,FlashMode=qio,FlashSize=4M,LoopCore=1,EventsCore=1,USBMode=default,CDCOnBoot=default,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,PartitionScheme=huge_app,CPUFreq=240,UploadSpeed=921600,DebugLevel=none,EraseFlash=none -v UNOR4USBBridge
5+
./compile.sh
66
echo "Build certificates bundle"
77
python certificates/gen_crt_bundle.py -i certificates/certificates.pem
88
echo "Combine binaries"

0 commit comments

Comments
 (0)