1515
1616#define FLASH_BYTES_PER_SECTOR 2
1717#define FLASH_SECTOR_WRITE_TYPICAL_TIME_USEC 1400 // not used
18- #define FLASH_BLOCK_ERASE_ACTUAL_TIME_USEC 800000 // not used
18+ #define FLASH_BLOCK_ERASE_ACTUAL_TIME_USEC 800000 // not used
1919#define FLASH_BLOCK_ERASE_MAX_TIME_USEC 6000000 // not used
2020
2121#define FLASH_ADDRESS1 0x60000000
2828
2929// EBIU Information
3030
31- #define M29W640FB__SIZE_IN_BYTES 0x00800000 // 8MB
31+ #define M29W640FB__SIZE_IN_BYTES 0x00800000 // 8MB
3232#define M29W640FB__WP_GPIO_PIN GPIO_PIN_NONE
3333#define M29W640FB__WP_ACTIVE FALSE
3434
4444const BlockRange g_M29W640FB_BlockRange1[] =
4545{
4646 // ER_CONFIG
47- { BlockRange::BLOCKTYPE_CONFIG, 0 , 7 }, // 8x8KB=64KB
47+ { BlockRange::BLOCKTYPE_CONFIG, 0 , 7 }, // 8x8KB=64KB
4848};
4949
5050const BlockRange g_M29W640FB_BlockRange2[] =
5151{
5252 // ER_DAT
53- { BlockRange::BLOCKTYPE_CODE, 0 , 1 }, // 2x64KB = 128KB
53+ { BlockRange::BLOCKTYPE_CODE, 0 , 2 }, // 3x64KB = 192KB
5454#ifdef DEBUG
5555 // In debug builds with TRACE pins enabled, only 1MB is available
56- { BlockRange::BLOCKTYPE_DEPLOYMENT, 2 , 15 }, // 15x64KB = 896KB
56+ { BlockRange::BLOCKTYPE_DEPLOYMENT, 3 , 15 }, // 13x64KB = 832KB
5757#else
58- { BlockRange::BLOCKTYPE_DEPLOYMENT, 2 , 126 }, // 126x64KB = 8000KB
58+ { BlockRange::BLOCKTYPE_DEPLOYMENT, 3 , 126 }, // 124x64KB = 7936KB
5959#endif
6060};
6161
@@ -65,14 +65,14 @@ const BlockRegionInfo g_M29W640FB_BlkRegion[M29W640FB__NUM_REGIONS] =
6565 {
6666 FLASH_ADDRESS1, // ByteAddress Start; // Starting Sector address
6767 FLASH_BLOCK1_COUNT, // UINT32 NumBlocks; // total number of blocks in this region
68- FLASH_BLOCK1_BYTES_PER_BLOCK, // UINT32 BytesPerBlock; // Total number of bytes per block
68+ FLASH_BLOCK1_BYTES_PER_BLOCK, // UINT32 BytesPerBlock; // Total number of bytes per block
6969 ARRAYSIZE_CONST_EXPR (g_M29W640FB_BlockRange1),
7070 g_M29W640FB_BlockRange1,
7171 },
7272 {
7373 FLASH_ADDRESS2, // ByteAddress Start; // Starting Sector address
7474 FLASH_BLOCK2_COUNT, // UINT32 NumBlocks; // total number of blocks in this region
75- FLASH_BLOCK2_BYTES_PER_BLOCK, // UINT32 BytesPerBlock; // Total number of bytes per block
75+ FLASH_BLOCK2_BYTES_PER_BLOCK, // UINT32 BytesPerBlock; // Total number of bytes per block
7676 ARRAYSIZE_CONST_EXPR (g_M29W640FB_BlockRange2),
7777 g_M29W640FB_BlockRange2,
7878 }
0 commit comments