Skip to content

Commit

Permalink
fix bug set a correct page size
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinghao Shi authored and Qinghao Shi committed Nov 9, 2018
1 parent d55c0da commit f7ff09d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion targets/TARGET_ARM_FM/TARGET_FVP_MPS2/flash_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* limitations under the License.
*/

#include "string.h"
#include "device.h"
#include "flash_api.h"
#include "memory_zones.h"
Expand All @@ -22,7 +23,7 @@
* The implementation emulates flash over SRAM.
*/

#define FLASH_PAGE_SIZE 256
#define FLASH_PAGE_SIZE 4U
#define FLASH_OFS_START ZBT_SRAM1_START
#define FLASH_SECTOR_SIZE 0x1000
#define FLASH_OFS_END (ZBT_SRAM1_START + ZBT_SRAM1_SIZE)
Expand Down

0 comments on commit f7ff09d

Please sign in to comment.