File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change 8
8
certsData = open ("data/roots.pem" , "rb" ).read ()
9
9
appData = open ("build/nina-fw.bin" , "rb" ).read ()
10
10
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
+
11
20
# calculate the output binary size, app offset
12
21
outputSize = 0x30000 + len (appData )
13
22
if (outputSize % 1024 ):
24
33
outputData [0x8000 + i ] = partitionData [i ]
25
34
26
35
for i in range (0 , len (phyData )):
27
- outputData [0xf000 + i ] = phyData [i ]
36
+ outputData [0x9000 + i ] = phyData [i ]
28
37
29
38
for i in range (0 , len (certsData )):
30
- outputData [0x10000 + i ] = certsData [i ]
39
+ outputData [0xA000 + i ] = certsData [i ]
31
40
32
41
# zero terminate the pem file
33
- outputData [0x10000 + len (certsData )] = 0
42
+ outputData [0xA000 + len (certsData )] = 0
34
43
35
44
for i in range (0 , len (appData )):
36
45
outputData [0x30000 + i ] = appData [i ]
You can’t perform that action at this time.
0 commit comments