File tree Expand file tree Collapse file tree 7 files changed +56
-18
lines changed
targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS
TARGET_K66F/device/TOOLCHAIN_GCC_ARM
TARGET_K82F/device/TOOLCHAIN_GCC_ARM
TARGET_KL27Z/device/TOOLCHAIN_GCC_ARM
TARGET_KL43Z/device/TOOLCHAIN_GCC_ARM
TARGET_KL82Z/device/TOOLCHAIN_GCC_ARM
TARGET_KW24D/device/TOOLCHAIN_GCC_ARM
TARGET_KW41Z/device/TOOLCHAIN_GCC_ARM Expand file tree Collapse file tree 7 files changed +56
-18
lines changed Original file line number Diff line number Diff line change @@ -50,9 +50,15 @@ ENTRY(Reset_Handler)
50
50
51
51
__ram_vector_table__ = 1;
52
52
53
- /* Heap 1/4 of ram and stack 1/8 */
54
- __stack_size__ = 0x8000;
55
- __heap_size__ = 0x10000;
53
+ /* With the RTOS in use, this does not affect the main stack size. The size of
54
+ * the stack where main runs is determined via the RTOS. */
55
+ __stack_size__ = 0x400;
56
+
57
+ /* This is the guaranteed minimum available heap size for an application. When
58
+ * uVisor is enabled, this is also the maximum available heap size. The
59
+ * HEAP_SIZE value is set by uVisor porters to balance the size of the legacy
60
+ * heap and the page heap in uVisor applications. */
61
+ __heap_size__ = 0x6000;
56
62
57
63
HEAP_SIZE = DEFINED (__heap_size__) ? __heap_size__ : 0x0400;
58
64
STACK_SIZE = DEFINED (__stack_size__) ? __stack_size__ : 0x0400;
Original file line number Diff line number Diff line change @@ -52,9 +52,15 @@ ENTRY(Reset_Handler)
52
52
53
53
__ram_vector_table__ = 1;
54
54
55
- /* Heap 1/4 of ram and stack 1/8 */
56
- __stack_size__ = 0x8000;
57
- __heap_size__ = 0x10000;
55
+ /* With the RTOS in use, this does not affect the main stack size. The size of
56
+ * the stack where main runs is determined via the RTOS. */
57
+ __stack_size__ = 0x400;
58
+
59
+ /* This is the guaranteed minimum available heap size for an application. When
60
+ * uVisor is enabled, this is also the maximum available heap size. The
61
+ * HEAP_SIZE value is set by uVisor porters to balance the size of the legacy
62
+ * heap and the page heap in uVisor applications. */
63
+ __heap_size__ = 0x6000;
58
64
59
65
HEAP_SIZE = DEFINED (__heap_size__) ? __heap_size__ : 0x0400;
60
66
STACK_SIZE = DEFINED (__stack_size__) ? __stack_size__ : 0x0400;
Original file line number Diff line number Diff line change @@ -53,9 +53,11 @@ ENTRY(Reset_Handler)
53
53
54
54
__ram_vector_table__ = 1;
55
55
56
- /* Heap 1/4 of ram and stack 1/8 */
57
- __stack_size__ = 0x800;
58
- __heap_size__ = 0x1000;
56
+ /* With the RTOS in use, this does not affect the main stack size. The size of
57
+ * the stack where main runs is determined via the RTOS. */
58
+ __stack_size__ = 0x400;
59
+ /* With the RTOS in use, this does not affect the main heap size. */
60
+ __heap_size__ = 0x0;
59
61
60
62
HEAP_SIZE = DEFINED (__heap_size__) ? __heap_size__ : 0x0400;
61
63
STACK_SIZE = DEFINED (__stack_size__) ? __stack_size__ : 0x0400;
Original file line number Diff line number Diff line change @@ -50,8 +50,14 @@ ENTRY(Reset_Handler)
50
50
51
51
__ram_vector_table__ = 1;
52
52
53
- /* Heap 1/4 of ram and stack 1/8 */
54
- __stack_size__ = 0x1000;
53
+ /* With the RTOS in use, this does not affect the main stack size. The size of
54
+ * the stack where main runs is determined via the RTOS. */
55
+ __stack_size__ = 0x400;
56
+
57
+ /* This is the guaranteed minimum available heap size for an application. When
58
+ * uVisor is enabled, this is also the maximum available heap size. The
59
+ * HEAP_SIZE value is set by uVisor porters to balance the size of the legacy
60
+ * heap and the page heap in uVisor applications. */
55
61
__heap_size__ = 0x2800;
56
62
57
63
HEAP_SIZE = DEFINED (__heap_size__) ? __heap_size__ : 0x0400;
Original file line number Diff line number Diff line change @@ -53,8 +53,14 @@ ENTRY(Reset_Handler)
53
53
54
54
__ram_vector_table__ = 1;
55
55
56
- /* Heap 1/4 of ram and stack 1/8 */
57
- __stack_size__ = 0x3000;
56
+ /* With the RTOS in use, this does not affect the main stack size. The size of
57
+ * the stack where main runs is determined via the RTOS. */
58
+ __stack_size__ = 0x400;
59
+
60
+ /* This is the guaranteed minimum available heap size for an application. When
61
+ * uVisor is enabled, this is also the maximum available heap size. The
62
+ * HEAP_SIZE value is set by uVisor porters to balance the size of the legacy
63
+ * heap and the page heap in uVisor applications. */
58
64
__heap_size__ = 0x6000;
59
65
60
66
HEAP_SIZE = DEFINED (__heap_size__) ? __heap_size__ : 0x0400;
Original file line number Diff line number Diff line change @@ -48,8 +48,14 @@ ENTRY(Reset_Handler)
48
48
49
49
__ram_vector_table__ = 1;
50
50
51
- /* Heap 1/4 of ram and stack 1/8 */
52
- __stack_size__ = 0x2000;
51
+ /* With the RTOS in use, this does not affect the main stack size. The size of
52
+ * the stack where main runs is determined via the RTOS. */
53
+ __stack_size__ = 0x400;
54
+
55
+ /* This is the guaranteed minimum available heap size for an application. When
56
+ * uVisor is enabled, this is also the maximum available heap size. The
57
+ * HEAP_SIZE value is set by uVisor porters to balance the size of the legacy
58
+ * heap and the page heap in uVisor applications. */
53
59
__heap_size__ = 0x4000;
54
60
55
61
HEAP_SIZE = DEFINED (__heap_size__) ? __heap_size__ : 0x0400;
Original file line number Diff line number Diff line change @@ -48,9 +48,15 @@ ENTRY(Reset_Handler)
48
48
49
49
__ram_vector_table__ = 1;
50
50
51
- /* Heap 1/4 of ram and stack 1/8 */
52
- __stack_size__ = 0x4000;
53
- __heap_size__ = 0x8000;
51
+ /* With the RTOS in use, this does not affect the main stack size. The size of
52
+ * the stack where main runs is determined via the RTOS. */
53
+ __stack_size__ = 0x400;
54
+
55
+ /* This is the guaranteed minimum available heap size for an application. When
56
+ * uVisor is enabled, this is also the maximum available heap size. The
57
+ * HEAP_SIZE value is set by uVisor porters to balance the size of the legacy
58
+ * heap and the page heap in uVisor applications. */
59
+ __heap_size__ = 0x6000;
54
60
55
61
HEAP_SIZE = DEFINED (__heap_size__) ? __heap_size__ : 0x0400;
56
62
STACK_SIZE = DEFINED (__stack_size__) ? __stack_size__ : 0x0400;
You can’t perform that action at this time.
0 commit comments