File tree Expand file tree Collapse file tree 3 files changed +59
-10
lines changed
TARGET_TMPM46B/device/TOOLCHAIN_ARM_STD
TARGET_TMPM4G9/device/TOOLCHAIN_ARM_STD Expand file tree Collapse file tree 3 files changed +59
-10
lines changed Original file line number Diff line number Diff line change 22
22
#define MBED_APP_SIZE 0x100000
23
23
#endif
24
24
25
+ #if !defined(MBED_RAM_START)
26
+ #define MBED_RAM_START 0x20000000
27
+ #endif
28
+
29
+ #if !defined(MBED_RAM_SIZE)
30
+ #define MBED_RAM_SIZE 0x30000
31
+ #endif
32
+
25
33
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
26
34
# if defined(MBED_BOOT_STACK_SIZE)
27
35
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
31
39
#endif
32
40
33
41
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE
42
+ #define VECTOR_SIZE 0x320
43
+
44
+ #define RAM_FIXED_SIZE (MBED_CONF_TARGET_BOOT_STACK_SIZE + VECTOR_SIZE)
45
+ #define MBED_IRAM1_START (MBED_RAM_START + VECTOR_SIZE)
46
+ #define MBED_IRAM1_SIZE (MBED_RAM_SIZE - VECTOR_SIZE - Stack_Size)
34
47
35
48
; TMPM46B: 1024 KB FLASH (0x100000) + 512 KB SRAM (0x80000)
36
49
@@ -43,12 +56,13 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE ; load region size_region
43
56
.ANY (+RO)
44
57
}
45
58
46
- RW_IRAM1 0x200001E0 (0x80000 - 0x1E0 - Stack_Size)
59
+ RW_IRAM1 MBED_IRAM1_START MBED_IRAM1_SIZE
47
60
{
48
- tmpm46b_fc.o (+RO)
61
+ tmpm4g9_fc.o (+RO)
49
62
.ANY (+RW, +ZI)
50
63
}
51
-
52
- ARM_LIB_STACK (0x20000000+0x80000) EMPTY -Stack_Size { ; stack
64
+ ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM_SIZE - RAM_FIXED_SIZE - (AlignExpr(ImageLimit(RW_IRAM1), 16) - MBED_IRAM1_START)) { ; heap
65
+ }
66
+ ARM_LIB_STACK (MBED_RAM_START+MBED_RAM_SIZE) EMPTY -Stack_Size { ; stack
53
67
}
54
68
}
Original file line number Diff line number Diff line change 38
38
#define MBED_APP_SIZE 0x000180000
39
39
#endif
40
40
41
+ #if !defined(MBED_RAM_START)
42
+ #define MBED_RAM_START 0x20000000
43
+ #endif
44
+
45
+ #if !defined(MBED_RAM_SIZE)
46
+ #define MBED_RAM_SIZE 0x30000
47
+ #endif
48
+
41
49
#if !defined(MBED_CONF_TARGET_BOOT_STACK_SIZE)
42
50
# if defined(MBED_BOOT_STACK_SIZE)
43
51
# define MBED_CONF_TARGET_BOOT_STACK_SIZE MBED_BOOT_STACK_SIZE
47
55
#endif
48
56
49
57
#define Stack_Size MBED_CONF_TARGET_BOOT_STACK_SIZE
58
+ #define VECTOR_SIZE 0x320
59
+
60
+ #define RAM_FIXED_SIZE (MBED_CONF_TARGET_BOOT_STACK_SIZE + VECTOR_SIZE)
61
+ #define MBED_IRAM1_START (MBED_RAM_START + VECTOR_SIZE)
62
+ #define MBED_IRAM1_SIZE (MBED_RAM_SIZE - VECTOR_SIZE - Stack_Size)
50
63
51
64
; TMPM4G9: 1536 KB FLASH (0x180000) + 192 KB SRAM (0x30000)
52
65
@@ -58,13 +71,13 @@ LR_IROM1 MBED_APP_START MBED_APP_SIZE ; load region size_region
58
71
*(InRoot$$Sections)
59
72
.ANY (+RO)
60
73
}
61
-
62
- RW_IRAM1 0x20000320 (0x30000 - 0x320 - Stack_Size)
74
+ RW_IRAM1 MBED_IRAM1_START MBED_IRAM1_SIZE
63
75
{
64
76
tmpm4g9_fc.o (+RO)
65
77
.ANY (+RW, +ZI)
66
78
}
67
-
68
- ARM_LIB_STACK (0x20000000+0x30000) EMPTY -Stack_Size { ; stack
79
+ ARM_LIB_HEAP AlignExpr(+0, 16) EMPTY (MBED_RAM_SIZE - RAM_FIXED_SIZE - (AlignExpr(ImageLimit(RW_IRAM1), 16) - MBED_IRAM1_START)) { ; heap
80
+ }
81
+ ARM_LIB_STACK (MBED_RAM_START+MBED_RAM_SIZE) EMPTY -Stack_Size { ; stack
69
82
}
70
83
}
Original file line number Diff line number Diff line change 6358
6358
"release_versions" : [
6359
6359
" 5"
6360
6360
],
6361
- "bootloader_supported" : true
6361
+ "bootloader_supported" : true ,
6362
+ "supported_application_profiles" : [" full" , " bare-metal" ],
6363
+ "supported_c_libs" : {
6364
+ "arm" : [
6365
+ " std" ,
6366
+ " small"
6367
+ ],
6368
+ "gcc_arm" : [
6369
+ " std" ,
6370
+ " small"
6371
+ ]
6372
+ }
6362
6373
},
6363
6374
"ARM_FM" : {
6364
6375
"inherits" : [
6647
6658
"release_versions" : [
6648
6659
" 5"
6649
6660
],
6650
- "bootloader_supported" : true
6661
+ "bootloader_supported" : true ,
6662
+ "supported_application_profiles" : [" full" , " bare-metal" ],
6663
+ "supported_c_libs" : {
6664
+ "arm" : [
6665
+ " std" ,
6666
+ " small"
6667
+ ],
6668
+ "gcc_arm" : [
6669
+ " std" ,
6670
+ " small"
6671
+ ]
6672
+ }
6651
6673
},
6652
6674
"MCU_PSOC6" : {
6653
6675
"inherits" : [
You can’t perform that action at this time.
0 commit comments