Skip to content

Commit 215b150

Browse files
dpgeorgevictorallume
authored andcommitted
stm32/boards/PYBD_SF2: Update mboot settings to use larger flash.
Signed-off-by: Damien George <damien@micropython.org>
1 parent a009a89 commit 215b150

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ports/stm32/boards/PYBD_SF2/mpconfigboard.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,16 +209,16 @@ extern struct _spi_bdev_t spi_bdev2;
209209
#define MBOOT_I2C_ALTFUNC (4)
210210

211211
#define MBOOT_SPIFLASH_ADDR (0x80000000)
212-
#define MBOOT_SPIFLASH_BYTE_SIZE (64 * 32 * 1024)
213-
#define MBOOT_SPIFLASH_LAYOUT "/0x80000000/64*32Kg"
214-
#define MBOOT_SPIFLASH_ERASE_BLOCKS_PER_PAGE (32 / 4)
212+
#define MBOOT_SPIFLASH_BYTE_SIZE (8 * 1024 * 1024)
213+
#define MBOOT_SPIFLASH_LAYOUT "/0x80000000/2048*4Kg"
214+
#define MBOOT_SPIFLASH_ERASE_BLOCKS_PER_PAGE (1)
215215
#define MBOOT_SPIFLASH_SPIFLASH (&spi_bdev.spiflash)
216216
#define MBOOT_SPIFLASH_CONFIG (&spiflash_config)
217217

218218
#define MBOOT_SPIFLASH2_ADDR (0x90000000)
219-
#define MBOOT_SPIFLASH2_BYTE_SIZE (2048 * 4 * 1024)
219+
#define MBOOT_SPIFLASH2_BYTE_SIZE (8 * 1024 * 1024)
220220
#define MBOOT_SPIFLASH2_LAYOUT "/0x90000000/2048*4Kg"
221-
#define MBOOT_SPIFLASH2_ERASE_BLOCKS_PER_PAGE (4 / 4)
221+
#define MBOOT_SPIFLASH2_ERASE_BLOCKS_PER_PAGE (1)
222222
#define MBOOT_SPIFLASH2_SPIFLASH (&spi_bdev2.spiflash)
223223
#define MBOOT_SPIFLASH2_CONFIG (&spiflash2_config)
224224

0 commit comments

Comments
 (0)