Skip to content

Commit 6d99368

Browse files
committed
partitions: update combine script
1 parent cc14031 commit 6d99368

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

combine.py

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
certsData = open("data/roots.pem", "rb").read()
99
appData = open("build/nina-fw.bin", "rb").read()
1010

11+
# Offset Size Name
12+
# 0x001000 0x007000 bootloader
13+
# 0x008000 0x001000 partitions
14+
# 0x009000 0x001000 phy data
15+
# 0x00A000 0x026000 certs
16+
# 0x030000 0x180000 app
17+
# 0x1B0000 0x040000 spiffs
18+
# 0x1F0000 0x010000 nvs
19+
1120
# calculate the output binary size, app offset
1221
outputSize = 0x30000 + len(appData)
1322
if (outputSize % 1024):
@@ -24,13 +33,13 @@
2433
outputData[0x8000 + i] = partitionData[i]
2534

2635
for i in range(0, len(phyData)):
27-
outputData[0xf000 + i] = phyData[i]
36+
outputData[0x9000 + i] = phyData[i]
2837

2938
for i in range(0, len(certsData)):
30-
outputData[0x10000 + i] = certsData[i]
39+
outputData[0xA000 + i] = certsData[i]
3140

3241
# zero terminate the pem file
33-
outputData[0x10000 + len(certsData)] = 0
42+
outputData[0xA000 + len(certsData)] = 0
3443

3544
for i in range(0, len(appData)):
3645
outputData[0x30000 + i] = appData[i]

0 commit comments

Comments
 (0)