Skip to content

Commit 6e78041

Browse files
committed
updated comments runtime sectors
1 parent 6c6e673 commit 6e78041

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

flash/flash_device.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
#define CUSTOM_VERIFY (false)
4747

4848
/**
49-
* @brief Allow changes in the sector arrangement on
49+
* @brief Enable changes to the sector layout at runtime. Can be used to create
50+
* one flash loader that supports multiple chips (like multiple variants of the
51+
* same NOR flash)
5052
*
5153
*/
5254
#define RUNTIME_SECTORS (false)
@@ -259,7 +261,7 @@ int __attribute__ ((noinline)) SEGGER_OPEN_Program(uint32_t address, uint32_t si
259261

260262
// set the flash data
261263
for (uint32_t i = 0; i < info->count; i++) {
262-
// update every sector
264+
// set every sector (data pointer points is not set to something specific)
263265
info->sectors[i] = {
264266
// set the start offset for the current sector
265267
.offset = i * 0x100,

0 commit comments

Comments
 (0)