File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 6
6
partitionData = open ("UNOR4USBBridge/build/esp32-patched.esp32.arduino_unor4wifi_usb_bridge/UNOR4USBBridge.ino.partitions.bin" , "rb" ).read ()
7
7
bootApp = open ("boot/boot_app0.bin" , "rb" ).read ()
8
8
appData = open ("UNOR4USBBridge/build/esp32-patched.esp32.arduino_unor4wifi_usb_bridge/UNOR4USBBridge.ino.bin" , "rb" ).read ()
9
+ spiffsData = open ("spiffs/spiffs.bin" , "rb" ).read ()
9
10
certsData = open ("UNOR4USBBridge/build/esp32-patched.esp32.arduino_unor4wifi_usb_bridge/x509_crt_bundle" , "rb" ).read ()
10
11
11
12
# 0x000000 bootloader
12
13
# 0x008000 partitions
13
14
# 0x00E000 boot_app
14
15
# 0x010000 app
16
+ # 0x330000 spiffs
15
17
# 0x3C0000 certs
16
18
17
19
# calculate the output binary size, app offset
35
37
for i in range (0 , len (appData )):
36
38
outputData [0x10000 + i ] = appData [i ]
37
39
40
+ for i in range (0 , len (spiffsData )):
41
+ outputData [0x330000 + i ] = spiffsData [i ]
42
+
38
43
for i in range (0 , len (certsData )):
39
44
outputData [0x3C0000 + i ] = certsData [i ]
40
45
You can’t perform that action at this time.
0 commit comments