Skip to content

Commit c2fece8

Browse files
committed
Add partitions for 8, 16 and 32MB flash.
1 parent 40812ba commit c2fece8

File tree

13 files changed

+168
-0
lines changed

13 files changed

+168
-0
lines changed

partitions/esp32/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@ use-cases where programs are bundled with the firmware (like with
1919
A partition table that sets the size of the OTA partitions
2020
to 0x1D0000 (1900544) bytes. This table reserves even more space for
2121
the OTA partitions.
22+
23+
## -8MB, -16MB, -32MB
24+
25+
The 8MB, 16MB, and 32MB variants are for devices with flash sizes of
26+
8MB, 16MB, and 32MB respectively. For each of them the additional space
27+
is allocated as a data partition.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# OTA-1C0000-16MB
2+
3+
A partition table for 16MB flash that sets the size of the OTA partitions
4+
to 0x1C0000 (1835008) bytes.
5+
6+
As a consequence the size of the programs partition is set to
7+
0x60000 (393216) bytes.
8+
9+
12MB of the flash are allocated as a data partition.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (C) 2023 Toitware ApS.
2+
#
3+
# Use of this source code is governed by a BSD0-style license that can be
4+
# found in the LICENSE_BSD0 file.
5+
6+
# Partition Table for Toit.
7+
8+
# Name, Type, SubType, Offset, Size
9+
# bootloader,, , 0x001000, 0x007000
10+
# partitions,, , 0x008000, 0x000c00
11+
secure, 0x42, 0x00, 0x009000, 0x004000,
12+
otadata, data, ota, , 0x002000,
13+
phy_init, data, phy, , 0x001000,
14+
ota_0, app, ota_0, , 0x1c0000,
15+
ota_1, app, ota_1, , 0x1c0000,
16+
nvs, data, nvs, , 0x010000,
17+
programs, 0x40, 0x00, , 0x060000, encrypted
18+
data, 0x41, 0x00, , 0xC00000, encrypted
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# OTA-1C0000-32MB
2+
3+
A partition table for 32MB flash that sets the size of the OTA partitions
4+
to 0x1C0000 (1835008) bytes.
5+
6+
As a consequence the size of the programs partition is set to
7+
0x60000 (393216) bytes.
8+
9+
28MB of the flash are allocated as a data partition.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (C) 2023 Toitware ApS.
2+
#
3+
# Use of this source code is governed by a BSD0-style license that can be
4+
# found in the LICENSE_BSD0 file.
5+
6+
# Partition Table for Toit.
7+
8+
# Name, Type, SubType, Offset, Size
9+
# bootloader,, , 0x001000, 0x007000
10+
# partitions,, , 0x008000, 0x000c00
11+
secure, 0x42, 0x00, 0x009000, 0x004000,
12+
otadata, data, ota, , 0x002000,
13+
phy_init, data, phy, , 0x001000,
14+
ota_0, app, ota_0, , 0x1c0000,
15+
ota_1, app, ota_1, , 0x1c0000,
16+
nvs, data, nvs, , 0x010000,
17+
programs, 0x40, 0x00, , 0x060000, encrypted
18+
data, 0x41, 0x00, , 0x1C00000, encrypted
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# OTA-1C0000-8MB
2+
3+
A partition table for 8MB flashthat sets the size of the OTA partitions
4+
to 0x1C0000 (1835008) bytes.
5+
6+
As a consequence the size of the programs partition is set to
7+
0x60000 (393216) bytes.
8+
9+
4MB of the flash are allocated as a data partition.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (C) 2023 Toitware ApS.
2+
#
3+
# Use of this source code is governed by a BSD0-style license that can be
4+
# found in the LICENSE_BSD0 file.
5+
6+
# Partition Table for Toit.
7+
8+
# Name, Type, SubType, Offset, Size
9+
# bootloader,, , 0x001000, 0x007000
10+
# partitions,, , 0x008000, 0x000c00
11+
secure, 0x42, 0x00, 0x009000, 0x004000,
12+
otadata, data, ota, , 0x002000,
13+
phy_init, data, phy, , 0x001000,
14+
ota_0, app, ota_0, , 0x1c0000,
15+
ota_1, app, ota_1, , 0x1c0000,
16+
nvs, data, nvs, , 0x010000,
17+
programs, 0x40, 0x00, , 0x060000, encrypted
18+
data, 0x41, 0x00, , 0x400000, encrypted
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# OTA-1D0000-16MB
2+
3+
A partition table for 16MB flash that sets the size of the OTA partitions
4+
to 0x1D0000 (1900544) bytes.
5+
6+
As a consequence the size of the programs partition is set to
7+
0x40000 (262144) bytes.
8+
9+
12MB of the flash are allocated as a data partition.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright (C) 2025 Toit contributors
2+
#
3+
# Use of this source code is governed by a BSD0-style license that can be
4+
# found in the LICENSE_BSD0 file.
5+
6+
# Partition Table for Toit.
7+
8+
# Name, Type, SubType, Offset, Size
9+
# bootloader,, , 0x001000, 0x007000
10+
# partitions,, , 0x008000, 0x000c00
11+
secure, 0x42, 0x00, 0x009000, 0x004000,
12+
otadata, data, ota, , 0x002000,
13+
phy_init, data, phy, , 0x001000,
14+
ota_0, app, ota_0, , 0x1d0000,
15+
ota_1, app, ota_1, , 0x1d0000,
16+
nvs, data, nvs, , 0x010000,
17+
programs, 0x40, 0x00, , 0x040000, encrypted
18+
data, 0x41, 0x00, , 0xC00000, encrypted
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# OTA-1D0000-32MB
2+
3+
A partition table for 32MB flash that sets the size of the OTA partitions
4+
to 0x1D0000 (1900544) bytes.
5+
6+
As a consequence the size of the programs partition is set to
7+
0x40000 (262144) bytes.
8+
9+
28MB of the flash are allocated as a data partition.

0 commit comments

Comments
 (0)