Skip to content

Commit a435cbe

Browse files
adustm0xc0170
authored andcommitted
Fix support of max flash size
1 parent c790971 commit a435cbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

targets/TARGET_STM/qspi_api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
#include "PeripheralPins.h"
3636

3737
/* Max amount of flash size is 4Gbytes */
38-
/* hence 2^(31+1), then FLASH_SIZE_DEFAULT = 31<<20 */
39-
#define QSPI_FLASH_SIZE_DEFAULT 0x1F00000
38+
/* hence 2^(31+1), then FLASH_SIZE_DEFAULT = 1<<31 */
39+
#define QSPI_FLASH_SIZE_DEFAULT 0x80000000
4040

4141
void qspi_prepare_command(const qspi_command_t *command, QSPI_CommandTypeDef *st_command)
4242
{

0 commit comments

Comments
 (0)