Skip to content

Commit d83be10

Browse files
committed
Add new SPIFFS partition in combine script
1 parent acb719e commit d83be10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

combine.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
partitionData = open("UNOR4USBBridge/build/esp32-patched.esp32.arduino_unor4wifi_usb_bridge/UNOR4USBBridge.ino.partitions.bin", "rb").read()
77
bootApp = open("boot/boot_app0.bin", "rb").read()
88
appData = open("UNOR4USBBridge/build/esp32-patched.esp32.arduino_unor4wifi_usb_bridge/UNOR4USBBridge.ino.bin", "rb").read()
9+
spiffsData = open("spiffs/spiffs.bin", "rb").read()
910
certsData = open("UNOR4USBBridge/build/esp32-patched.esp32.arduino_unor4wifi_usb_bridge/x509_crt_bundle", "rb").read()
1011

1112
# 0x000000 bootloader
1213
# 0x008000 partitions
1314
# 0x00E000 boot_app
1415
# 0x010000 app
16+
# 0x330000 spiffs
1517
# 0x3C0000 certs
1618

1719
# calculate the output binary size, app offset
@@ -35,6 +37,9 @@
3537
for i in range(0, len(appData)):
3638
outputData[0x10000 + i] = appData[i]
3739

40+
for i in range(0, len(spiffsData)):
41+
outputData[0x330000 + i] = spiffsData[i]
42+
3843
for i in range(0, len(certsData)):
3944
outputData[0x3C0000 + i] = certsData[i]
4045

0 commit comments

Comments
 (0)