@@ -47,11 +47,13 @@ void setup() {
47
47
Serial.println (" Available partition schemes:" );
48
48
Serial.println (" \n Partition scheme 1" );
49
49
Serial.println (" Partition 1: WiFi firmware and certificates 1MB" );
50
- Serial.println (" Partition 2: OTA and user data 13MB" );
50
+ Serial.println (" Partition 2: OTA and user data 12MB" );
51
+ Serial.println (" Partition 3: Provisioning KVStore 1MB" );
51
52
Serial.println (" \n Partition scheme 2" );
52
53
Serial.println (" Partition 1: WiFi firmware and certificates 1MB" );
53
54
Serial.println (" Partition 2: OTA 5MB" );
54
- Serial.println (" Partition 3: User data 8MB" ),
55
+ Serial.println (" Partition 3: User data 7MB" ),
56
+ Serial.println (" Partition 4: Provisioning KVStore 1MB" );
55
57
Serial.println (" \n Do you want to use partition scheme 1? Y/[n]" );
56
58
Serial.println (" If No, partition scheme 2 will be used." );
57
59
bool default_scheme = waitResponse ();
@@ -68,12 +70,14 @@ void setup() {
68
70
69
71
mbed::MBRBlockDevice::partition (&root, 1 , 0x0B , 0 , 1024 * 1024 );
70
72
if (default_scheme) {
71
- mbed::MBRBlockDevice::partition (&root, 3 , 0x0B , 14 * 1024 * 1024 , 14 * 1024 * 1024 );
72
- mbed::MBRBlockDevice::partition (&root, 2 , 0x0B , 1024 * 1024 , 14 * 1024 * 1024 );
73
+ mbed::MBRBlockDevice::partition (&root, 2 , 0x0B , 1024 * 1024 , 13 * 1024 * 1024 );
74
+ mbed::MBRBlockDevice::partition (&root, 3 , 0x0B , 13 * 1024 * 1024 , 13 * 1024 * 1024 );
75
+ mbed::MBRBlockDevice::partition (&root, 4 , 0x0B , 13 * 1024 * 1024 , 14 * 1024 * 1024 );
73
76
// use space from 15.5MB to 16 MB for another fw, memory mapped
74
77
} else {
75
78
mbed::MBRBlockDevice::partition (&root, 2 , 0x0B , 1024 * 1024 , 6 * 1024 * 1024 );
76
- mbed::MBRBlockDevice::partition (&root, 3 , 0x0B , 6 * 1024 * 1024 , 14 * 1024 * 1024 );
79
+ mbed::MBRBlockDevice::partition (&root, 3 , 0x0B , 6 * 1024 * 1024 , 13 * 1024 * 1024 );
80
+ mbed::MBRBlockDevice::partition (&root, 4 , 0x0B , 13 * 1024 * 1024 , 14 * 1024 * 1024 );
77
81
// use space from 15.5MB to 16 MB for another fw, memory mapped
78
82
}
79
83
0 commit comments