Skip to content

Commit 5500918

Browse files
Qinghao Shiadbridge
Qinghao Shi
authored andcommitted
fix bug set a correct page size
1 parent 3be93e4 commit 5500918

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

targets/TARGET_ARM_FM/TARGET_FVP_MPS2/flash_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
#include "string.h"
1718
#include "device.h"
1819
#include "flash_api.h"
1920
#include "memory_zones.h"
@@ -22,7 +23,7 @@
2223
* The implementation emulates flash over SRAM.
2324
*/
2425

25-
#define FLASH_PAGE_SIZE 256
26+
#define FLASH_PAGE_SIZE 4U
2627
#define FLASH_OFS_START ZBT_SRAM1_START
2728
#define FLASH_SECTOR_SIZE 0x1000
2829
#define FLASH_OFS_END (ZBT_SRAM1_START + ZBT_SRAM1_SIZE)

0 commit comments

Comments
 (0)