From 25f30eb8a6839d662867ff335eb10d39e93dd9c8 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 2 Sep 2021 00:03:41 +1000 Subject: [PATCH] stm32/boards/LEGO_HUB_NO6: Add comment re constraints on SPI flash cfg. Signed-off-by: Damien George --- ports/stm32/boards/LEGO_HUB_NO6/mpconfigboard.h | 1 + 1 file changed, 1 insertion(+) diff --git a/ports/stm32/boards/LEGO_HUB_NO6/mpconfigboard.h b/ports/stm32/boards/LEGO_HUB_NO6/mpconfigboard.h index e208284f43..b3e061efb7 100644 --- a/ports/stm32/boards/LEGO_HUB_NO6/mpconfigboard.h +++ b/ports/stm32/boards/LEGO_HUB_NO6/mpconfigboard.h @@ -79,6 +79,7 @@ // SPI flash, for R/W storage // The first 1MiB is skipped because it's used by the built-in bootloader +// Note: MICROPY_HW_SPIFLASH_OFFSET_BYTES must be a multiple of MP_SPIFLASH_ERASE_BLOCK_SIZE #define MICROPY_HW_SPIFLASH_OFFSET_BYTES (1024 * 1024) #define MICROPY_HW_SPIFLASH_BLOCKMAP(bl) ((bl) + MICROPY_HW_SPIFLASH_OFFSET_BYTES / FLASH_BLOCK_SIZE) #define MICROPY_HW_SPIFLASH_BLOCKMAP_EXT(bl) ((bl) + MICROPY_HW_SPIFLASH_OFFSET_BYTES / MP_SPIFLASH_ERASE_BLOCK_SIZE)