Commit b1b345d
authored
fix custom partiton table offset calculation (#52)
With a the following partiton table it will flash the filesystem to
0x10000 instead of to 0x00d90000.
Blank offset is supported as specified here
<https://docs.espressif.com/projects/esp-idf/en/v5.1.5/esp32/api-guides/partition-tables.html#creating-custom-tables>
```csv
nvs, data, nvs, 0x9000, 20K,
otadata, data, ota, 0xe000, 8K,
app0, app, ota_0, 0x10000, 6400K,
app1, app, ota_1, , 6400K,
conf, data, spiffs, , 1M,
spiffs, data, spiffs, , 2432K,
coredump, data, coredump,, 64K,
```1 parent 60f9b15 commit b1b345d
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
154 | | - | |
155 | | - | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | | - | |
| 159 | + | |
158 | 160 | | |
159 | | - | |
| 161 | + | |
160 | 162 | | |
161 | 163 | | |
162 | 164 | | |
| |||
0 commit comments