We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89145c6 commit 25f30ebCopy full SHA for 25f30eb
ports/stm32/boards/LEGO_HUB_NO6/mpconfigboard.h
@@ -79,6 +79,7 @@
79
80
// SPI flash, for R/W storage
81
// 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
83
#define MICROPY_HW_SPIFLASH_OFFSET_BYTES (1024 * 1024)
84
#define MICROPY_HW_SPIFLASH_BLOCKMAP(bl) ((bl) + MICROPY_HW_SPIFLASH_OFFSET_BYTES / FLASH_BLOCK_SIZE)
85
#define MICROPY_HW_SPIFLASH_BLOCKMAP_EXT(bl) ((bl) + MICROPY_HW_SPIFLASH_OFFSET_BYTES / MP_SPIFLASH_ERASE_BLOCK_SIZE)
0 commit comments