File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
ports/stm32/boards/PYBD_SF2 Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments