Skip to content

Commit 12ed482

Browse files
andreagilardonipennam
authored andcommitted
erasing MBR table before creating a new partitioning scheme
1 parent 35c5c0e commit 12ed482

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/STM32H747_System/examples/QSPIFormat/QSPIFormat.ino

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ void setup() {
5555
Serial.println("Do you want to proceed? Y/[n]");
5656

5757
if (true == waitResponse()) {
58+
if (root->init() != BD_ERROR_OK) {
59+
Serial.println(F("Error: QSPI init failure."));
60+
return;
61+
}
62+
63+
root->erase(0x0, root->get_erase_size());
5864
MBRBlockDevice::partition(root, 1, 0x0B, 0, 1 * 1024 * 1024);
5965
MBRBlockDevice::partition(root, 2, 0x0B, 1 * 1024 * 1024, 6 * 1024 * 1024);
6066
MBRBlockDevice::partition(root, 3, 0x0B, 6 * 1024 * 1024, 7 * 1024 * 1024);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy