Skip to content

Commit 3d7e19b

Browse files
authored
Merge pull request ARMmbed#6 from linlingao/run2main
Fixed ROM/RAM start address/size.
2 parents 5d900e1 + 93317ba commit 3d7e19b

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

.mbedignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
features/frameworks/greentea-client/
2-
features/frameworks/utest/
3-
features/frameworks/unity/
1+
features/
2+
events/
3+
TESTS/

targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/device/TOOLCHAIN_ARM_STD/CC3220SF.sct

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
/* Device specific values */
44

5-
#define ROM_START 0x08000000
6-
#define ROM_SIZE 0x200000
5+
#define ROM_START 0x01000000
6+
#define ROM_SIZE 0x100000
77
#define RAM_START 0x20000000
8-
#define RAM_SIZE 0x30000
8+
#define RAM_SIZE 0x40000
99
#define VECTORS 107 /* This value must match NVIC_NUM_VECTORS */
1010

1111
/* Common - Do not change */

targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/device/TOOLCHAIN_ARM_STD/startup_CC3220SF.s

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
3333
; </h>
3434

35-
Stack_Size EQU 0x00000400
35+
Stack_Size EQU 0x00001000
3636

3737
AREA STACK, NOINIT, READWRITE, ALIGN=3
3838
Stack_Mem SPACE Stack_Size
@@ -43,7 +43,7 @@ __initial_sp
4343
; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
4444
; </h>
4545

46-
Heap_Size EQU 0x00000100
46+
Heap_Size EQU 0x00008000
4747

4848
AREA HEAP, NOINIT, READWRITE, ALIGN=3
4949
__heap_base

targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/device/TOOLCHAIN_GCC_ARM/gcc_arm.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* Device specific values */
22

3-
#define ROM_START 0x08000000
4-
#define ROM_SIZE 0x200000
3+
#define ROM_START 0x01000000
4+
#define ROM_SIZE 0x100000
55
#define RAM_START 0x20000000
6-
#define RAM_SIZE 0x30000
6+
#define RAM_SIZE 0x40000
77
#define VECTORS 107 /* This value must match NVIC_NUM_VECTORS */
88

99
/* Common - Do not change */

targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/device/TOOLCHAIN_GCC_ARM/startup_CC3220SF.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#ifdef __STACK_SIZE
4040
.equ Stack_Size, __STACK_SIZE
4141
#else
42-
.equ Stack_Size, 0x400
42+
.equ Stack_Size, 0x1000
4343
#endif
4444
.globl __StackTop
4545
.globl __StackLimit
@@ -60,7 +60,7 @@ __StackTop:
6060
#ifdef __HEAP_SIZE
6161
.equ Heap_Size, __HEAP_SIZE
6262
#else
63-
.equ Heap_Size, 0
63+
.equ Heap_Size, 0x8000
6464
#endif
6565
.globl __HeapBase
6666
.globl __HeapLimit

targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF/device/TOOLCHAIN_IAR/CC3220SF.icf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* Device specific values */
22

3-
define symbol ROM_START = 0x08000000;
4-
define symbol ROM_SIZE = 0x200000;
3+
define symbol ROM_START = 0x01000000;
4+
define symbol ROM_SIZE = 0x100000;
55
define symbol RAM_START = 0x20000000;
6-
define symbol RAM_SIZE = 0x30000;
6+
define symbol RAM_SIZE = 0x40000;
77
define symbol VECTORS = 107; /* This value must match NVIC_NUM_VECTORS */
8-
define symbol HEAP_SIZE = 0x10000;
8+
define symbol HEAP_SIZE = 0x8000;
99

1010
/* Common - Do not change */
1111

0 commit comments

Comments
 (0)