Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Commit b0ba7f2

Browse files
committed
Merge branch 'dev' of https://github.com/NETMF/netmf-interpreter into dev
2 parents 4a069fa + 43e9082 commit b0ba7f2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Solutions/MCBSTM32F400/DeviceCode/Blockstorage/M29W640FB/M29W640FB_BlConfig.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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
@@ -28,7 +28,7 @@
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

@@ -44,18 +44,18 @@
4444
const 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

5050
const 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
}

Solutions/MCBSTM32F400/TinyCLR/scatterfile_tinyclr_mdk.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
<!-- DAT region goes into external NOR Flash -->
5252
<Set Name="Data_BaseAddress" Value="%Config_BaseAddress% + %Config_Size%"/>
53-
<Set Name="Data_Size" Value="0x00020000"/><!-- 128KB -->
53+
<Set Name="Data_Size" Value="0x00030000"/><!-- 192KB -->
5454
<!-- Deployment fills the rest of external NOR flash... -->
5555

5656
<!-- Internal FLASH -->

0 commit comments

Comments
 (0)