Skip to content

Commit f209e31

Browse files
committed
Add info about block device usage in different configurations
1 parent dfa9c5c commit f209e31

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

default_bd.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ static BlockDevice *default_bd = NULL;
4949
static MBRBlockDevice *logical_bd = NULL;
5050
#endif
5151

52+
/*
53+
* MCUBOOT_AS_ENVIE -> Secondary Block device defined by getOTAData [SDCARD, QSPI] Internal flash not supported
54+
* -> !!WARNING!! Scratch Block device by default on QSPI + MBR + FAT
55+
*
56+
* MCUBOOT_USE_FILE_BD -> Secondary Block device on QSPI + MBR + FAT
57+
* -> Scratch Block device on QSPI + MBR + FAT
58+
*
59+
* -> Secondary Block device on RAW QSPI @0x0000000
60+
* -> Scratch Block device on Internal flash @MCUBOOT_SCRATCH_START_ADDR
61+
*/
62+
5263
BlockDevice *BlockDevice::get_default_instance()
5364
{
5465
#if MCUBOOT_AS_ENVIE

0 commit comments

Comments
 (0)