@@ -47,11 +47,11 @@ 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 14MB " );
50
+ Serial.println (" Partition 2: OTA and user data 13MB " );
51
51
Serial.println (" \n Partition scheme 2" );
52
52
Serial.println (" Partition 1: WiFi firmware and certificates 1MB" );
53
53
Serial.println (" Partition 2: OTA 5MB" );
54
- Serial.println (" Partition 3: User data 9MB " ),
54
+ Serial.println (" Partition 3: User data 8MB " ),
55
55
Serial.println (" \n Do you want to use partition scheme 1? Y/[n]" );
56
56
Serial.println (" If No, partition scheme 2 will be used." );
57
57
bool default_scheme = waitResponse ();
@@ -62,12 +62,12 @@ void setup() {
62
62
if (true == waitResponse ()) {
63
63
mbed::MBRBlockDevice::partition (&root, 1 , 0x0B , 0 , 1024 * 1024 );
64
64
if (default_scheme) {
65
- mbed::MBRBlockDevice::partition (&root, 3 , 0x0B , 6 * 1024 * 1024 , 0 );
65
+ mbed::MBRBlockDevice::partition (&root, 3 , 0x0B , 14 * 1024 * 1024 , 14 * 1024 * 1024 );
66
66
mbed::MBRBlockDevice::partition (&root, 2 , 0x0B , 1024 * 1024 , 14 * 1024 * 1024 );
67
67
// use space from 15.5MB to 16 MB for another fw, memory mapped
68
68
} else {
69
- mbed::MBRBlockDevice::partition (&root, 2 , 0x0B , 1024 * 1024 , 5 * 1024 * 1024 );
70
- mbed::MBRBlockDevice::partition (&root, 3 , 0x0B , 6 * 1024 * 1024 , 9 * 1024 * 1024 );
69
+ mbed::MBRBlockDevice::partition (&root, 2 , 0x0B , 1024 * 1024 , 6 * 1024 * 1024 );
70
+ mbed::MBRBlockDevice::partition (&root, 3 , 0x0B , 6 * 1024 * 1024 , 14 * 1024 * 1024 );
71
71
// use space from 15.5MB to 16 MB for another fw, memory mapped
72
72
}
73
73
0 commit comments