We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13d7bd commit 84e7c2dCopy full SHA for 84e7c2d
builder/esp32.py
@@ -40,6 +40,18 @@ def get_partition_file_name(otp):
40
# SIL_WESP32
41
42
43
+'''
44
+# Name, Type, SubType, Offset, Size, Flags
45
+nvs, data, nvs, 0x9000,0x6000
46
+otadata, data, ota, 0xF000,0x2000
47
+phy_init, data, phy, 0x11000,0x1000
48
+ota_0, app, ota_0, 0x12000,0x25A000
49
+ota_1, app, ota_1,0x26C000,0x25A000
50
+vfs, data, fat,0x4C6000,0x33A000
51
52
+
53
+0x10000
54
55
class Partition:
56
57
def __init__(self, size):
@@ -87,8 +99,20 @@ def save(self):
87
99
offset += self.phy_init
88
100
89
101
if ota:
102
+ value = offset % 0x10000
103
104
+ if value:
105
+ self.nvs += 0x10000 - value
106
+ self.save()
107
+ return
108
90
109
data.append(f'ota_0,app,ota_0,0x{offset:X},0x{self.factory:X}')
91
110
offset += self.factory
111
112
113
114
+ offset += 0x10000 - value
115
92
116
data.append(f'ota_1,app,ota_1,0x{offset:X},0x{self.factory:X}')
93
117
94
118
else:
0 commit comments