Skip to content

Commit

Permalink
updated comments runtime sectors
Browse files Browse the repository at this point in the history
  • Loading branch information
itzandroidtab committed Oct 9, 2023
1 parent 6c6e673 commit 6e78041
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flash/flash_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
#define CUSTOM_VERIFY (false)

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

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

0 comments on commit 6e78041

Please sign in to comment.