Skip to content

Commit 38d7a03

Browse files
committed
Remove internal flash as option for default_default_instance
1 parent f209e31 commit 38d7a03

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

default_bd.cpp

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,18 @@ BlockDevice *BlockDevice::get_default_instance()
7070

7171
getOTAData(&storage_type, &data_offset, &update_size);
7272

73-
if (storage_type & INTERNAL_FLASH_FLAG) {
74-
if (storage_type & (FATFS_FLAG | LITTLEFS_FLAG)) {
75-
// have a filesystem, use offset as partition start
76-
static FlashIAPBlockDevice flashIAP_bd(0x8000000 + data_offset, 2 * 1024 * 1024 - data_offset);
77-
raw_bd = &flashIAP_bd;
78-
} else {
79-
// raw device, no offset
80-
static FlashIAPBlockDevice flashIAP_bd(0x8000000, 2 * 1024 * 1024);
81-
raw_bd = &flashIAP_bd;
82-
}
83-
}
73+
//if (storage_type & INTERNAL_FLASH_FLAG) {
74+
// if (storage_type & (FATFS_FLAG | LITTLEFS_FLAG)) {
75+
// // have a filesystem, use offset as partition start
76+
// static FlashIAPBlockDevice flashIAP_bd(0x8000000 + data_offset, 2 * 1024 * 1024 - data_offset);
77+
// raw_bd = &flashIAP_bd;
78+
// } else {
79+
// // raw device, no offset
80+
// static FlashIAPBlockDevice flashIAP_bd(0x8000000, 2 * 1024 * 1024);
81+
// raw_bd = &flashIAP_bd;
82+
// }
83+
//}
84+
8485
#if MCUBOOT_ENVIE_SDCARD
8586
if (storage_type & SDCARD_FLAG) {
8687
static SDMMCBlockDevice SDMMC_bd;

0 commit comments

Comments
 (0)