Skip to content

Commit 25f30eb

Browse files
committed
stm32/boards/LEGO_HUB_NO6: Add comment re constraints on SPI flash cfg.
Signed-off-by: Damien George <damien@micropython.org>
1 parent 89145c6 commit 25f30eb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/stm32/boards/LEGO_HUB_NO6/mpconfigboard.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979

8080
// SPI flash, for R/W storage
8181
// The first 1MiB is skipped because it's used by the built-in bootloader
82+
// Note: MICROPY_HW_SPIFLASH_OFFSET_BYTES must be a multiple of MP_SPIFLASH_ERASE_BLOCK_SIZE
8283
#define MICROPY_HW_SPIFLASH_OFFSET_BYTES (1024 * 1024)
8384
#define MICROPY_HW_SPIFLASH_BLOCKMAP(bl) ((bl) + MICROPY_HW_SPIFLASH_OFFSET_BYTES / FLASH_BLOCK_SIZE)
8485
#define MICROPY_HW_SPIFLASH_BLOCKMAP_EXT(bl) ((bl) + MICROPY_HW_SPIFLASH_OFFSET_BYTES / MP_SPIFLASH_ERASE_BLOCK_SIZE)

0 commit comments

Comments
 (0)